<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 on Linux incorrectly prints symbol name when a breakpoint on a libc function is hit"
href="http://llvm.org/bugs/show_bug.cgi?id=15938">15938</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>LLDB on Linux incorrectly prints symbol name when a breakpoint on a libc function is hit
</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>daniel.malea@intel.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>From an email thread with Greg Clayton, here are the steps to reproduce:
./lldb
(lldb) file /bin/ls
Current executable set to '/bin/ls' (x86_64).
(lldb) b malloc
Breakpoint 1: no locations (pending).
WARNING: Unable to resolve breakpoint to any actual locations.
(lldb) r
Process 6985 launched: '/bin/ls' (x86_64)
1 location added to breakpoint 1
1 location added to breakpoint 1
Process 6985 stopped
* thread #1: tid = 0x1b49, 0x00007ff63da9ff50 libc.so.6`__libc_malloc,
stop reason = breakpoint 1.1
frame #0: 0x00007ff63da9ff50 libc.so.6`__libc_malloc
libc.so.6`__libc_malloc:
-> 0x7ff63da9ff50: movq %r12, -16(%rsp)
libc.so.6`malloc + 5:
0x7ff63da9ff55: movq %rbx, -32(%rsp)
0x7ff63da9ff5a: movq %rdi, %r12
0x7ff63da9ff5d: movq %rbp, -24(%rsp)
Instead of printing the function name as "__libc_malloc" LLDB should print
"malloc" which is more user friendly and actually matches what the user
requested. A test case for this is also required, but should be simple enough
to add to one of the breakpoint test cases.</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>