Fix SBWatchpoint::SetEnabled to send an event.

We really shouldn't be sending events for SB API's, dunno when we started
doing that.  We don't do it for other things.  But first restore the status quo.

llvm-svn: 285781
This commit is contained in:
Jim Ingham
2016-11-02 01:06:42 +00:00
parent b4a9bd83de
commit c76c3f2f91
2 changed files with 4 additions and 4 deletions

View File

@@ -130,13 +130,14 @@ void SBWatchpoint::SetEnabled(bool enabled) {
Target &target = watchpoint_sp->GetTarget();
std::lock_guard<std::recursive_mutex> guard(target.GetAPIMutex());
ProcessSP process_sp = target.GetProcessSP();
const bool notify = true;
if (process_sp) {
if (enabled)
process_sp->EnableWatchpoint(watchpoint_sp.get(), false);
process_sp->EnableWatchpoint(watchpoint_sp.get(), notify);
else
process_sp->DisableWatchpoint(watchpoint_sp.get(), false);
process_sp->DisableWatchpoint(watchpoint_sp.get(), notify);
} else {
watchpoint_sp->SetEnabled(enabled);
watchpoint_sp->SetEnabled(enabled, notify);
}
}
}