<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 --- - Only one frame on call stack when running 32 bit app under 64 bit LLDB"
href="http://llvm.org/bugs/show_bug.cgi?id=16582">16582</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Only one frame on call stack when running 32 bit app under 64 bit LLDB
</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>sorrels.m@gmail.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=10847" name="attach_10847" title="Small test app to demo this bug">attachment 10847</a> <a href="attachment.cgi?id=10847&action=edit" title="Small test app to demo this bug">[details]</a></span>
Small test app to demo this bug
When using Linux 64 bit lldb to debug a 32 bit application, the call stack only
shows one frame. This causes a number of the tests in the test suite to fail,
include TestFrames.py (a good example). Attached is a simple test app and a
debug session. When the break occurs in function f2, there should be four
functions on the call stack (main, f0, f1 and f2), but a bt only lists frame #0
(lldb) b f2
Breakpoint 1: where = 32bittest`f2 + 18 at main.c:5, address = 0x08048402
(lldb) run
Process 4127 launched: '/home/matthews/bin/32bittest' (i386)
In f0, calling f1
In f1, calling f2
Process 4127 stopped
* thread #1: tid = 0x101f, 0x08048402 32bittest`f2(val=65) + 18 at main.c:5,
stop reason = breakpoint 1.1
frame #0: 0x08048402 32bittest`f2(val=65) + 18 at main.c:5
2
3 int f2(int val)
4 {
-> 5 printf("In f2, returning\n");
6 }
7
8 int f1(int val)
bt
* thread #1: tid = 0x101f, 0x08048402 32bittest`f2(val=65) + 18 at main.c:5,
stop reason = breakpoint 1.1
frame #0: 0x08048402 32bittest`f2(val=65) + 18 at main.c:5
(lldb)</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>