<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 ignores watchpoints on threads spawned after the watchpoint is set"
href="http://llvm.org/bugs/show_bug.cgi?id=16566">16566</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>LLDB ignores watchpoints on threads spawned after the watchpoint is set
</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>All
</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>This appears to be a Mac OS X-specific issue which manifests as a watchpoint
being ignored when:
1. a watchpoint is set (for example, on a global)
2. a thread is created
3. the newly created thread modifies the (global) watched value
There is a workaround for this behaviour: if a breakpoint is hit on the newly
created thread, the watchpoint is 'enabled' because the 'global watchpoint
state is inherited'. For an example of the workaround, see
TestWatchpointsMultipleThreads.py:70
This bug is causing a number of test failures in the suite
TestConcurrentEvents.py on Mac OS X. To reproduce, uncomment the @skipIfDarwin
decorators, and do:
python dotest.py --executable <path-to-lldb> -p TestConcurrentEvents</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>