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/solib-svr4.c | |
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/solib-svr4.c')
-rw-r--r-- | gdb/solib-svr4.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index 5a72893..46f09a7 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -2117,16 +2117,16 @@ svr4_update_solib_event_breakpoint (struct breakpoint *b) return false; } - for (bp_location *loc : b->locations ()) + for (bp_location &loc : b->locations ()) { struct svr4_info *info; struct probe_and_action *pa; - info = solib_svr4_pspace_data.get (loc->pspace); + info = solib_svr4_pspace_data.get (loc.pspace); if (info == NULL || info->probes_table == NULL) continue; - pa = solib_event_probe_at (info, loc->address); + pa = solib_event_probe_at (info, loc.address); if (pa == NULL) continue; |