diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-05-09 10:08:51 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-05-25 09:52:22 -0400 |
commit | a1decfc1df541de75e7506cb6ac7fbdd8648fbf6 (patch) | |
tree | d5fd8ef869ee0baf73c639c949242c481f2b8c68 /gdb/break-catch-load.c | |
parent | 410f4d7a76fec676ad1f22beafbdbe40c2f700de (diff) | |
download | binutils-a1decfc1df541de75e7506cb6ac7fbdd8648fbf6.zip binutils-a1decfc1df541de75e7506cb6ac7fbdd8648fbf6.tar.gz binutils-a1decfc1df541de75e7506cb6ac7fbdd8648fbf6.tar.bz2 |
gdb: remove breakpoint_pointer_iterator
Remove the breakpoint_pointer_iterator layer. Adjust all users of
all_breakpoints and all_tracepoints to use references instead of
pointers.
Change-Id: I376826f812117cee1e6b199c384a10376973af5d
Reviewed-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/break-catch-load.c')
-rw-r--r-- | gdb/break-catch-load.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/break-catch-load.c b/gdb/break-catch-load.c index 4396288..440b428 100644 --- a/gdb/break-catch-load.c +++ b/gdb/break-catch-load.c @@ -91,20 +91,20 @@ solib_catchpoint::breakpoint_hit (const struct bp_location *bl, if (ws.kind () == TARGET_WAITKIND_LOADED) return 1; - for (breakpoint *other : all_breakpoints ()) + for (breakpoint &other : all_breakpoints ()) { - if (other == bl->owner) + if (&other == bl->owner) continue; - if (other->type != bp_shlib_event) + if (other.type != bp_shlib_event) continue; - if (pspace != NULL && other->pspace != pspace) + 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; } } |