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/jit.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/jit.c')
-rw-r--r-- | gdb/jit.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -845,14 +845,14 @@ jit_breakpoint_deleted (struct breakpoint *b) if (b->type != bp_jit_event) return; - for (bp_location *iter : b->locations ()) + for (bp_location &iter : b->locations ()) { - for (objfile *objf : iter->pspace->objfiles ()) + for (objfile *objf : iter.pspace->objfiles ()) { jiter_objfile_data *jiter_data = objf->jiter_data.get (); if (jiter_data != nullptr - && jiter_data->jit_breakpoint == iter->owner) + && jiter_data->jit_breakpoint == iter.owner) { jiter_data->cached_code_address = 0; jiter_data->jit_breakpoint = nullptr; |