forked from Imagelibrary/binutils-gdb
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user