<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 --- - Incorrect stop reason data for multiple breakpoints"
href="http://llvm.org/bugs/show_bug.cgi?id=17096">17096</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Incorrect stop reason data for multiple breakpoints
</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>jonas.wagner@epfl.ch
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>SBThread.GetStopReasonDataAtIndex() seems to return the wrong data. Consider
the following session:
jowagner@dslabpc6:/tmp$ cat simple.c
#include <stdio.h>
int main() {
printf("Hello, world!\n");
return 0;
}
jowagner@dslabpc6:/tmp$ gcc -Wall -g -o simple simple.c
jowagner@dslabpc6:/tmp$ ./simple
Hello, world!
jowagner@dslabpc6:/tmp$ lldb-3.4 ./simple
Current executable set to './simple' (x86_64).
(lldb) breakpoint set -n main
Breakpoint 1: where = simple`main + 4 at simple.c:4, address =
0x0000000000400590
(lldb) breakpoint set -n main
Breakpoint 2: where = simple`main + 4 at simple.c:4, address =
0x0000000000400590
(lldb) run
Process 5262 launched: './simple' (x86_64)
Process 5262 stopped
* thread #1: tid = 5262, 0x0000000000400590 simple`main + 4 at simple.c:4, name
= 'simple', stop reason = breakpoint 1.1 2.1
frame #0: 0x0000000000400590 simple`main + 4 at simple.c:4
1 #include <stdio.h>
2
3 int main() {
-> 4 printf("Hello, world!\n");
5 return 0;
6 }
(lldb) script
Python Interactive Interpreter. To exit, type 'quit()', 'exit()' or Ctrl-D.
<span class="quote">>>> lldb.thread.GetStopReasonDataCount()</span >
4L
<span class="quote">>>> lldb.thread.GetStopReasonDataAtIndex(0)</span >
1L
<span class="quote">>>> lldb.thread.GetStopReasonDataAtIndex(1)</span >
1L
<span class="quote">>>> lldb.thread.GetStopReasonDataAtIndex(2)</span >
1L
<span class="quote">>>> lldb.thread.GetStopReasonDataAtIndex(3)</span >
1L
<span class="quote">>>> lldb.thread.GetStopReasonDataAtIndex(4)</span >
0L
One can see that the stop reason is displayed correctly in the thread listing,
but that GetStopReasonDataAtIndex(2) returns the wrong value.</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>