diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-05-10 11:30:34 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-05-25 09:40:58 -0400 |
commit | b00b30b2981d393743bafe86b5ea37fd2299eccc (patch) | |
tree | f986d2f0f1111ac762104272665afa1e4ec1919f /gdb/tui | |
parent | 20afe380e8c1c2647e9475340a0f6a53d573331b (diff) | |
download | gdb-b00b30b2981d393743bafe86b5ea37fd2299eccc.zip gdb-b00b30b2981d393743bafe86b5ea37fd2299eccc.tar.gz gdb-b00b30b2981d393743bafe86b5ea37fd2299eccc.tar.bz2 |
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 <aburgess@redhat.com>
Diffstat (limited to 'gdb/tui')
-rw-r--r-- | gdb/tui/tui-winsource.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |