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

Finkel, Hal J. via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 22 12:11:10 PST 2019


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
>>
>>
-- 
Hal Finkel
Lead, Compiler Technology and Programming Languages
Leadership Computing Facility
Argonne National Laboratory



More information about the llvm-commits mailing list