mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 14:48:27 +08:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user