binutils-gdb/gdb/tui
Simon Marchi 40cb8ca539 gdb: add breakpoint::locations method
Add the breakpoint::locations method, which returns a range that can be
used to iterate over a breakpoint's locations.  This shortens

  for (bp_location *loc = b->loc; loc != nullptr; loc = loc->next)

into

  for (bp_location *loc : b->locations ())

Change all the places that I found that could use it.

gdb/ChangeLog:

	* breakpoint.h (bp_locations_range): New.
	(struct breakpoint) <locations>: New.  Use where possible.

Change-Id: I1ba2f7d93d57e544e1f8609124587dcf2e1da037
2021-05-27 14:58:37 -04:00
..
ChangeLog-1998-2003
tui-command.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
tui-command.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
tui-data.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
tui-data.h gdb: return true in TuiWindow.is_valid only if TUI is enabled 2021-02-08 11:56:16 +00:00
tui-disasm.c [gdb/tui] Fix len_without_escapes in tui-disasm.c 2021-04-06 10:40:11 +02:00
tui-disasm.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
tui-file.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
tui-file.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
tui-hooks.c gdbsupport, gdb: give names to observers 2021-04-24 19:26:41 -04:00
tui-hooks.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
tui-interp.c gdbsupport, gdb: give names to observers 2021-04-24 19:26:41 -04:00
tui-io.c gdb/tui: fix issue with handling the return character 2021-02-08 09:51:46 +00:00
tui-io.h gdb/tui: fix issue with handling the return character 2021-02-08 09:51:46 +00:00
tui-layout.c gdb: generate the prefix name for prefix commands on demand 2021-05-12 11:19:22 +01:00
tui-layout.h gdb/tui: don't add windows to global list from tui_layout🪟:apply 2021-02-08 11:18:33 +00:00
tui-location.c gdb/tui: remove special handling of locator/status window 2021-01-28 17:00:30 +00:00
tui-location.h gdb/tui: remove special handling of locator/status window 2021-01-28 17:00:30 +00:00
tui-out.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
tui-out.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
tui-regs.c Don't draw register sub windows outside the visible area 2021-02-07 19:13:45 +01:00
tui-regs.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
tui-source.c gdb/tui: remove special handling of locator/status window 2021-01-28 17:00:30 +00:00
tui-source.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
tui-stack.c gdb: move all "current target" wrapper implementations to target.c 2021-03-24 18:07:30 -04:00
tui-stack.h gdb/tui: remove special handling of locator/status window 2021-01-28 17:00:30 +00:00
tui-win.c gdb: make add_com_alias accept target as a cmd_list_element 2021-05-27 14:00:07 -04:00
tui-win.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
tui-wingeneral.c gdb/tui: remove special handling of locator/status window 2021-01-28 17:00:30 +00:00
tui-wingeneral.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
tui-winsource.c gdb: add breakpoint::locations method 2021-05-27 14:58:37 -04:00
tui-winsource.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
tui.c gdb: return true in TuiWindow.is_valid only if TUI is enabled 2021-02-08 11:56:16 +00:00
tui.h gdb/tui: remove special handling of locator/status window 2021-01-28 17:00:30 +00:00