[lldb-dev] [Bug 28728] New: lldb python failed to enable watchpoint

via lldb-dev lldb-dev at lists.llvm.org
Tue Jul 26 22:19:00 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=28728

            Bug ID: 28728
           Summary: lldb python failed to enable watchpoint
           Product: lldb
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: pianoboysai at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

3.8 source:

void
SBWatchpoint::SetEnabled (bool enabled)
{
    lldb::WatchpointSP watchpoint_sp(GetSP());
    if (watchpoint_sp)
    {
        Mutex::Locker api_locker (watchpoint_sp->GetTarget().GetAPIMutex());
       
watchpoint_sp->GetTarget().DisableWatchpointByID(watchpoint_sp->GetID());
    }
}


it always uses "DisableWatchpointByID",  so can not enable again.

-- 
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/20160727/689e76e7/attachment.html>


More information about the lldb-dev mailing list