diff options
author | Tom Tromey <tom@tromey.com> | 2017-08-21 21:37:45 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-09-20 22:05:15 -0600 |
commit | 48649e1bfe2ef4cceff15a34e5a9e37201894ecd (patch) | |
tree | d6daf0c881ba5e213ecf04b1526b3e3755caacd5 /sim | |
parent | 04afa70c8e1c931dd44db76eb9f0ddd4949ed00c (diff) | |
download | fsf-binutils-gdb-48649e1bfe2ef4cceff15a34e5a9e37201894ecd.zip fsf-binutils-gdb-48649e1bfe2ef4cceff15a34e5a9e37201894ecd.tar.gz fsf-binutils-gdb-48649e1bfe2ef4cceff15a34e5a9e37201894ecd.tar.bz2 |
Use function_view in a couple of places in breakpoint.c
This changes iterate_over_related_breakpoints and
map_breakpoint_numbers to take a function_view. Then, it simplifies
the callers by using lambdas. This then allows the removal of some
bookkeeping types.
gdb/ChangeLog
2017-09-20 Tom Tromey <tom@tromey.com>
* breakpoint.c (struct commands_info, do_map_commands_command):
Remove.
(commands_command_1): Update.
(iterate_over_related_breakpoints): Take a function_view.
(do_delete_breakpoint, do_map_delete_breakpoint): Remove.
(delete_command): Update.
(map_breakpoint_numbers): Take a function_view.
(do_disable_breakpoint, do_map_delete_breakpoint): Remove.
(disable_command): Update.
(do_enable_breakpoint, do_map_enable_breakpoint): Remove.
(enable_command): Update.
(struct disp_data, do_enable_breakpoint_disp)
(do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
(do_map_enable_delete_breakpoint): Remove.
(enable_once_command, enable_count_command, enable_delete_command)
(delete_trace_variable_command): Update.
Diffstat (limited to 'sim')
0 files changed, 0 insertions, 0 deletions