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>
This commit is contained in:
Simon Marchi
2023-05-10 11:30:34 -04:00
parent 20afe380e8
commit b00b30b298
10 changed files with 172 additions and 181 deletions

View File

@@ -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;
}
}