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.