[lldb-dev] issue with StackFrame::GetSymbolContext

Romaric Jodin via lldb-dev lldb-dev at lists.llvm.org
Tue Jul 9 02:14:56 PDT 2019


HI everyone,

I'm adding my architecture into lldb.
I'm having some trouble with the debug information on the stack frame.
LLDB is never displaying any source code. It seems that we I get in
"StackFrame::GetSymbolContext" "m_flags" is always set to "0xffffffff" but
my "m_sc" does not contains the information needed about the module
("module_sp=0x0").
But LLDB can read the elf file and find information like here:

Process 21312 stopped
* thread #1, name = 'DPUthread0', stop reason = suspended
    frame #0: 0x80000018
test`__bootstrap:
    test[0x80000018] <+24>: sub    r0, r0, 0x1, pl, 0x80000010
    test[0x80000020] <+32>: jgeu   id, 0x3, 0x80000058
    test[0x80000028] <+40>: jeq    id, 0x2, 0x80000038
    test[0x80000030] <+48>: boot   id, 0x1

or here:

(lldb) b main
Breakpoint 1: where = test`main + 32 at test.c:29, address = 0x80000080

Do someone get what I'm missing?

Thanks,
-- 
*Romaric JODIN*
UPMEM
*Software Engineer*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20190709/d9459c06/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo signature mail 50x50.png
Type: image/png
Size: 1939 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20190709/d9459c06/attachment.png>


More information about the lldb-dev mailing list