Hi John,

The OpenMP Tools Workgroup has been discussing a very similar issue for OpenMP threads and TARGET regions (e.g.,regions offloaded to GPUs). Tony Tye at AMD (who is also a DWARF committee member) proposed a model where the compiler can generate DWARF that would tell a consumer (most likely a debugger) how to call out to a helper library to satisfy the queries.

Tony can explain better than I, but basically it's a generalization and abstraction of existing models where the semantics and interfaces are hard-coded into the tools. For example, for TLS (thread-local storage) on Linux, DWARF has "push TLS" operators where the debugger is supposed to know to dlopen() and call into libthread_db.so to calculate the address of a TLS object given the "key" on the top of the evaluation stack. The vision is to enhance DWARF to be able to describe complex operations without hard-coding the details of the interface into the tools.

Cheers, John D.

On 12/28/20 2:52 PM, Bishop, John E via Dwarf-Discuss wrote:

This e-mail may contain information that is privileged or confidential. If you are not the intended recipient, please delete the e-mail and any attachments and notify us immediately.


_______________________________________________
Dwarf-Discuss mailing list
Dwarf-Discuss@lists.dwarfstd.org
http://lists.dwarfstd.org/listinfo.cgi/dwarf-discuss-dwarfstd.org

Reply via email to