[lldb-dev] [Bug 25061] New: Thread doesn't contain the main stack frame

via lldb-dev lldb-dev at lists.llvm.org
Mon Oct 5 11:26:21 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=25061

            Bug ID: 25061
           Summary: Thread doesn't contain the main stack frame
           Product: lldb
           Version: 3.6
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: berykubik at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

When I access SBThread::frames or use "thread backtrace" in the lldb console,
the stack frame from main function is missing. In the given example, when I set
breakpoint in test, it shows only one stack frame in backtrace. In GDB, it
shows two (test + main). Is this the intended behaviour? How can I access all
the frames? I'm compiling the source with -g and -O0, I even tried
-fno-omit-frame-pointer, but it didn't help.

Example:

void test()
{
   // breakpoint here, bt shows only 1 frame
}

int main()
{
   test();
   return 0;
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20151005/ba3a2c5e/attachment.html>


More information about the lldb-dev mailing list