[PATCH] D103131: support debug info for alias variable
David Blaikie via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 23 08:22:08 PDT 2021
dblaikie added a comment.
In D103131#2835981 <https://reviews.llvm.org/D103131#2835981>, @kamleshbhalui wrote:
> In D103131#2835909 <https://reviews.llvm.org/D103131#2835909>, @dblaikie wrote:
>
>> In D103131#2835702 <https://reviews.llvm.org/D103131#2835702>, @kamleshbhalui wrote:
>>
>>> Here is what we get when we replace int with float.
>>>
>>> $lldb-11 ./a.out
>>> (lldb) target create "./a.out"
>>> Current executable set to '/folk/kkumar/tcllvm/llvm-build-lldb-rel/bin/a.out' (x86_64).
>>> (lldb) b main
>>> Breakpoint 1: where = a.out`main + 4 at test.c:3:12, address = 0x0000000000400484
>>> (lldb) p oldname
>>> (float) $0 = 1
>>> (lldb) p newname
>>> (void *) $1 = 0x000000003f800000
>>
>> Yep, looks like it's ignoring the imported declaration in favor of the raw symbol table entry.
>>
>> How's lldb handle GCC-style debug info (the variable declaration, without any imported declaration) for the alias?
>
> lldb's behavior is same even with GCC -style debug info.
Hmm, good to know/unfortunate. Guess it'll need some work.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103131/new/
https://reviews.llvm.org/D103131
More information about the cfe-commits
mailing list