Skip to content

Commit 0bf7cf4

Browse files
committed
LLDB: correct event when removing all watchpoints
Previously we incorrectly checked for a "breakpoint changed" event listener removing all watchpoints (e.g. via SBTarget::DeleteAllWatchpoints()), although we would emit a "watchpoint changed" event if there were a listener for 'breakpoint changed'. This meant that we might not emit a "watchpoint changed" event if there was a listener for this event. Correct it to check for the "watchpoint changed" event.
1 parent b4d52a9 commit 0bf7cf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Breakpoint/WatchpointList.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ void WatchpointList::RemoveAll(bool notify) {
236236
wp_collection::iterator pos, end = m_watchpoints.end();
237237
for (pos = m_watchpoints.begin(); pos != end; ++pos) {
238238
if ((*pos)->GetTarget().EventTypeHasListeners(
239-
Target::eBroadcastBitBreakpointChanged)) {
239+
Target::eBroadcastBitWatchpointChanged)) {
240240
auto data_sp = std::make_shared<Watchpoint::WatchpointEventData>(
241241
eWatchpointEventTypeRemoved, *pos);
242242
(*pos)->GetTarget().BroadcastEvent(

0 commit comments

Comments
 (0)