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

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 8 16:29:33 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16566

            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 at cs.uiuc.edu
          Reporter: daniel.malea at 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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20130708/37ae2b5d/attachment.html>


More information about the lldb-dev mailing list