mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-12-19 01:19:41 +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:
@@ -1035,8 +1035,8 @@ gdbpy_breakpoints (PyObject *self, PyObject *args)
|
||||
|
||||
/* If build_bp_list returns false, it signals an error condition. In that
|
||||
case abandon building the list and return nullptr. */
|
||||
for (breakpoint *bp : all_breakpoints ())
|
||||
if (!build_bp_list (bp, list.get ()))
|
||||
for (breakpoint &bp : all_breakpoints ())
|
||||
if (!build_bp_list (&bp, list.get ()))
|
||||
return nullptr;
|
||||
|
||||
return PyList_AsTuple (list.get ());
|
||||
|
||||
Reference in New Issue
Block a user