[committed][OG10] Fix offload dwarf info

Andrew Stubbs ams@codesourcery.com
Fri Jan 15 11:43:18 GMT 2021


This patch corrects a problem in which GDB ignores the debug info for 
offload kernel entry functions because they're represented as nested 
functions inside a function that does not exist on the accelerator 
device (only on the host).

The fix is to add a notional code range to the non-existent parent 
function. Setting it the same as the inner function is good enough 
because GDB selects the innermost.

I'll submit this the mainline when stage 1 opens. Committed to 
devel/omp/gcc-10 for now.

Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 210115-og10-fix-offload-dwarf.patch
Type: text/x-patch
Size: 1344 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210115/2350e219/attachment.bin>


More information about the Gcc-patches mailing list