From a1decfc1df541de75e7506cb6ac7fbdd8648fbf6 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 9 May 2023 10:08:51 -0400 Subject: gdb: remove breakpoint_pointer_iterator Remove the breakpoint_pointer_iterator layer. Adjust all users of all_breakpoints and all_tracepoints to use references instead of pointers. Change-Id: I376826f812117cee1e6b199c384a10376973af5d Reviewed-By: Andrew Burgess --- gdb/tui/tui-winsource.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'gdb/tui') diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c index 9e47606..a3714fc 100644 --- a/gdb/tui/tui-winsource.c +++ b/gdb/tui/tui-winsource.c @@ -625,24 +625,24 @@ tui_source_window_base::update_breakpoint_info do with it. Identify enable/disabled breakpoints as well as those that we already hit. */ tui_bp_flags mode = 0; - for (breakpoint *bp : all_breakpoints ()) + for (breakpoint &bp : all_breakpoints ()) { - if (bp == being_deleted) + if (&bp == being_deleted) continue; - for (bp_location &loc : bp->locations ()) + for (bp_location &loc : bp.locations ()) { if (location_matches_p (&loc, i)) { - if (bp->enable_state == bp_disabled) + if (bp.enable_state == bp_disabled) mode |= TUI_BP_DISABLED; else mode |= TUI_BP_ENABLED; - if (bp->hit_count) + if (bp.hit_count) mode |= TUI_BP_HIT; - if (bp->first_loc ().cond) + if (bp.first_loc ().cond) mode |= TUI_BP_CONDITIONAL; - if (bp->type == bp_hardware_breakpoint) + if (bp.type == bp_hardware_breakpoint) mode |= TUI_BP_HARDWARE; } } -- cgit v1.1