Open Quuxplusone opened 3 years ago
P.S: Ok, maybe it doesn't confuse LLDB - but it definitely confuses me. That is, if I stop at breakpoint, I would expect to be able to refer to a variable the same way it is referenced in the code and not have to qualify it with the right namespace.
seems like LLDB's bug - closing this and open a bug in LLDB instead
(not really a bug - more of a question)
Should we change this? Currently this confuses the debugger and makes it a bit annoying.
Repro:
lldb -- ld64.lld.darwninnew <... rest of args>
Set a breakpoint anywhere - but for best effect, here: https://github.com/llvm/llvm-project/blob/2782cb8da0b3c180fa7c8627cb255a026f3d25a2/lld/MachO/Driver.cpp#L1141
(ie., right after
symtab
is set)Try and print
symtab
orin.got
:Note that LLDB prints the ELF's objects rather than macho's ones!!!