summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBWatchpoint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/API/SBWatchpoint.cpp')
-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