[Bug 16566] New: LLDB ignores watchpoints on threads spawned after the watchpoint is set

Bug ID 16566
Summary LLDB ignores watchpoints on threads spawned after the watchpoint is set
Product lldb
Version unspecified
Hardware PC
OS All
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@cs.uiuc.edu
Reporter daniel.malea@intel.com
Classification Unclassified

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

Jim Ingham changed bug 16566

What Removed Added
Status NEW RESOLVED
Resolution FIXED

Comment # 2 on bug 16566 from Jim Ingham

I fixed this in debugserver.  The fix is r186132.