aboutsummaryrefslogtreecommitdiff
path: root/gdb/break-catch-load.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/break-catch-load.c')
-rw-r--r--gdb/break-catch-load.c4
1 files changed, 2 insertions, 2 deletions
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;
}
}