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/break-catch-load.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/break-catch-load.c') diff --git a/gdb/break-catch-load.c b/gdb/break-catch-load.c index d33313a..4396288 100644 --- a/gdb/break-catch-load.c +++ b/gdb/break-catch-load.c @@ -102,9 +102,9 @@ solib_catchpoint::breakpoint_hit (const struct bp_location *bl, if (pspace != NULL && other->pspace != pspace) continue; - for (bp_location *other_bl : other->locations ()) + for (bp_location &other_bl : other->locations ()) { - if (other->breakpoint_hit (other_bl, aspace, bp_addr, ws)) + if (other->breakpoint_hit (&other_bl, aspace, bp_addr, ws)) return 1; } } -- cgit v1.1