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

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@lists.llvm.org
Reporter pianoboysai@gmail.com
CC llvm-bugs@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.

Greg Clayton changed bug 28728

What Removed Added
Status NEW RESOLVED
CC clayborg@gmail.com
Resolution FIXED

Comment # 1 on bug 28728 from Greg Clayton

% svn commit
Sending       
packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_events/TestWatchpointEvents.py
Sending        source/API/SBWatchpoint.cpp
Transmitting file data ..done
Committing transaction...
Committed revision 276914.