[llvm] r351846 - [DEBUGINFO, NVPTX] Enable support for the debug info on NVPTX target.

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 22 10:06:59 PST 2019


Yes, it should work.

Some pieces are not implemented yet, though. You cannot print the value
of the variables. It requires an additional non-standard DWARF attribute
to emit. I'm working on it. Until it is landed, you need to manually
point the cuda-gdb the type and the address space of the variable (or
the address of the variable).

So, to get the value of the local variable, you need to manually enter
in the debugger something like this:

p *(local unsigned*)(0xbbbbbbb)

-------------
Best regards,
Alexey Bataev

22.01.2019 13:00, Finkel, Hal J. пишет:
> On 1/22/19 11:43 AM, Alexey Bataev via llvm-commits wrote:
>> Author: abataev
>> Date: Tue Jan 22 09:43:37 2019
>> New Revision: 351846
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=351846&view=rev
>> Log:
>> [DEBUGINFO, NVPTX] Enable support for the debug info on NVPTX target.
>>
>> Summary: Enable full support for the debug info.
>
> Nice! Does it all actually work now, or are more pieces still needed?
>
>  -Hal
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190122/84935e07/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190122/84935e07/attachment.sig>


More information about the llvm-commits mailing list