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/jit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/jit.c') 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; -- cgit v1.1