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

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 10 12:25:57 PST 2019


Hi Hal, just want let you know that I committed full debug info support
for NVPTX, so you don't need to do anything special to view the values
of the variables in the debugger.

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

22.01.2019 15:11, Finkel, Hal J. пишет:
> On 1/22/19 12:06 PM, Alexey Bataev wrote:
>> 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)
>>
> Thanks, Alexey. I'll have some happy colleagues, especially once you can
> print the value of variables :-)
>
>  -Hal
>
>
>> -------------
>> 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 --------------
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/20190210/c0888ea6/attachment.sig>


More information about the llvm-commits mailing list