summaryrefslogtreecommitdiffstats
path: root/lldb/source/API
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2016-07-27 20:47:49 +0000
committerGreg Clayton <gclayton@apple.com>2016-07-27 20:47:49 +0000
commit8089e81ccde146f550852a595b98666d6fe01bbd (patch)
tree93c6480506f904f74e546310856c885de0bce063 /lldb/source/API
parent94872ff11c9bb7d7d4c6523f62daf6b2366ad0f2 (diff)
downloadbcm5719-llvm-8089e81ccde146f550852a595b98666d6fe01bbd.tar.gz
bcm5719-llvm-8089e81ccde146f550852a595b98666d6fe01bbd.zip
Fixed "void SBWatchpoint::SetEnabled (bool enabled)" to work properly and added a test for it.
https://llvm.org/bugs/show_bug.cgi?id=28729 <rdar://problem/27575225> llvm-svn: 276914
Diffstat (limited to 'lldb/source/API')
-rw-r--r--lldb/source/API/SBWatchpoint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/API/SBWatchpoint.cpp b/lldb/source/API/SBWatchpoint.cpp
index c33d5686b9c..1c88a58191e 100644
--- a/lldb/source/API/SBWatchpoint.cpp
+++ b/lldb/source/API/SBWatchpoint.cpp
@@ -159,7 +159,7 @@ SBWatchpoint::SetEnabled (bool enabled)
if (watchpoint_sp)
{
std::lock_guard<std::recursive_mutex> guard(watchpoint_sp->GetTarget().GetAPIMutex());
- watchpoint_sp->GetTarget().DisableWatchpointByID(watchpoint_sp->GetID());
+ watchpoint_sp->SetEnabled(enabled);
}
}
OpenPOWER on IntegriCloud