From b00b30b2981d393743bafe86b5ea37fd2299eccc Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 10 May 2023 11:30:34 -0400 Subject: gdb: remove bp_location_pointer_iterator Remove the bp_location_pointer_iterator layer. Adjust all users of breakpoint::locations to use references instead of pointers. Change-Id: Iceed34f5e0f5790a9cf44736aa658be6d1ba1afa Reviewed-By: Andrew Burgess --- gdb/tui/tui-winsource.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/tui') diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c index 3fc38b7..9e47606 100644 --- a/gdb/tui/tui-winsource.c +++ b/gdb/tui/tui-winsource.c @@ -630,9 +630,9 @@ tui_source_window_base::update_breakpoint_info if (bp == being_deleted) continue; - for (bp_location *loc : bp->locations ()) + for (bp_location &loc : bp->locations ()) { - if (location_matches_p (loc, i)) + if (location_matches_p (&loc, i)) { if (bp->enable_state == bp_disabled) mode |= TUI_BP_DISABLED; -- cgit v1.1