mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
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>
This commit is contained in:
@ -416,9 +416,9 @@ bpfinishpy_handle_stop (struct bpstat *bs, int print_frame)
|
||||
{
|
||||
gdbpy_enter enter_py;
|
||||
|
||||
for (breakpoint *bp : all_breakpoints_safe ())
|
||||
for (breakpoint &bp : all_breakpoints_safe ())
|
||||
bpfinishpy_detect_out_scope_cb
|
||||
(bp, bs == NULL ? NULL : bs->breakpoint_at, true);
|
||||
(&bp, bs == NULL ? NULL : bs->breakpoint_at, true);
|
||||
}
|
||||
|
||||
/* Attached to `exit' notifications, triggers all the necessary out of
|
||||
@ -429,8 +429,8 @@ bpfinishpy_handle_exit (struct inferior *inf)
|
||||
{
|
||||
gdbpy_enter enter_py (target_gdbarch ());
|
||||
|
||||
for (breakpoint *bp : all_breakpoints_safe ())
|
||||
bpfinishpy_detect_out_scope_cb (bp, nullptr, true);
|
||||
for (breakpoint &bp : all_breakpoints_safe ())
|
||||
bpfinishpy_detect_out_scope_cb (&bp, nullptr, true);
|
||||
}
|
||||
|
||||
/* Initialize the Python finish breakpoint code. */
|
||||
|
Reference in New Issue
Block a user