aboutsummaryrefslogtreecommitdiff
path: root/gdb/jit.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-05-10 11:30:34 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-05-25 09:40:58 -0400
commitb00b30b2981d393743bafe86b5ea37fd2299eccc (patch)
treef986d2f0f1111ac762104272665afa1e4ec1919f /gdb/jit.c
parent20afe380e8c1c2647e9475340a0f6a53d573331b (diff)
downloadgdb-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/jit.c b/gdb/jit.c
index e085d56..25c8ed8 100644
--- a/gdb/jit.c
+++ b/gdb/jit.c
@@ -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;