<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - LLDB is unable to parse part of DWARF data generated by clang"
href="http://llvm.org/bugs/show_bug.cgi?id=18454">18454</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>LLDB is unable to parse part of DWARF data generated by clang
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>lldb-dev@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Reporter</th>
<td>akawolf0@gmail.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>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 (<a href="http://llvm.org/svn/llvm-project/lldb/trunk">http://llvm.org/svn/llvm-project/lldb/trunk</a> 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
naming)):
$ /media/Data/clang-release/bin/lldb
/media/Data/Qt/test-projects/build-test1-Qt_5_2_1_linux32_clang_devel_PC_LLDB-Debug/test1
Current executable set to
'/media/Data/Qt/test-projects/build-test1-Qt_5_2_1_linux32_clang_devel_PC_LLDB-Debug/test1'
(x86_64).
(lldb) run
Process 11811 launched:
'/media/Data/Qt/test-projects/build-test1-Qt_5_2_1_linux32_clang_devel_PC_LLDB-Debug/test1'
(x86_64)
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 =
0x0000000000402d98
Run.
(lldb) run
There is a running process, kill it and restart?: [Y/n] y
Process 11818 launched:
'/media/Data/Qt/test-projects/build-test1-Qt_5_2_1_linux32_clang_devel_PC_LLDB-Debug/test1'
(x86_64)
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();
9
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
/media/Data/Qt/test-projects/build-test1-Qt_5_2_1_linux32_clang_devel_PC_LLDB-Debug/moc_mainwindow.cpp
(MainWindow) $0 = (ui = 0x0000000000f0ba40)
In GDB exactly same exacutable file is work.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>