[lldb-dev] [Bug 18454] New: LLDB is unable to parse part of DWARF data generated by clang

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jan 13 01:18:27 PST 2014


            Bug ID: 18454
           Summary: LLDB is unable to parse part of DWARF data generated
                    by clang
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at cs.uiuc.edu
          Reporter: akawolf0 at gmail.com
    Classification: Unclassified

I try to compile simple project with Qt. It was successful.
But when I try to debug that with the LLDB, it's failed.
Same exactly binary works with the GDB perfectly.

OS - Linux x64;
lldb version 3.5 (http://llvm.org/svn/llvm-project/lldb/trunk revision 199037
clang revision 198916 llvm revision 198916);
Qt libs - Qt 5.2.1.

What I try to do (this is compiled by clang x64 (32bit -- my mistake in the

$ /media/Data/clang-release/bin/lldb
Current executable set to
(lldb) run
Process 11811 launched:

Looks like all work. Then I stopped it.

Process 11811 stopped
* thread #1: tid = 11811, 0x00007f673562afbd libc.so.6`__poll + 45, name =
'test1', stop reason = signal SIGSTOP
    frame #0: 0x00007f673562afbd libc.so.6`__poll + 45
libc.so.6`__poll + 45:
-> 0x7f673562afbd:  movq   (%rsp), %rdi
   0x7f673562afc1:  movq   %rax, %rdx
   0x7f673562afc4:  callq  0x7f6735645e10            ; ???
   0x7f673562afc9:  movq   %rdx, %rax

Add breakpoint.

(lldb) b /media/Data/Qt/test-projects/test1/main.cpp:8
Breakpoint 1: where = test1`main + 72 at main.cpp:8, address =


(lldb) run 
There is a running process, kill it and restart?: [Y/n] y
Process 11818 launched:
Process 11818 stopped
* thread #1: tid = 11818, 0x0000000000402d98 test1`main(argc=1,
argv=0x00007fff226e9d48) + 72 at main.cpp:8, name = 'test1', stop reason =
breakpoint 1.1
    frame #0: 0x0000000000402d98 test1`main(argc=1, argv=0x00007fff226e9d48) +
72 at main.cpp:8
   5    {
   6        QApplication a(argc, argv);
   7        MainWindow w;
-> 8        w.show();
   10       return a.exec();
   11   }

Breakpoint is worked. Then I try to examine variable w.

(lldb) p w

error: test1 DWARF DIE at 0x0000ca2f for class 'MainWindow' has a base class
'QMainWindow' that is a forward declaration, not a complete definition.
Please file a bug against the compiler and include the preprocessed output for
(MainWindow) $0 = (ui = 0x0000000000f0ba40)

In GDB exactly same exacutable file is work.

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/20140113/f9fab2cc/attachment.html>

More information about the lldb-dev mailing list