Remove some cleanups from breakpoint.c
authorTom Tromey <tom@tromey.com>
Sun, 8 Oct 2017 19:58:07 +0000 (13:58 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 11 Oct 2017 21:46:31 +0000 (15:46 -0600)
commit81b1e71c4a1370c77ad1d462e1a761402d48b1c0
tree76e3cc4f0d040a7c17bad41c7285e8b1f052c8b0
parent4b97e3893ed2af7bdb9dcaa34fae1a207e2d7042
Remove some cleanups from breakpoint.c

This removes some cleanups from breakpoint.c, replacing them with C++
data structures.

2017-10-11  Tom Tromey  <tom@tromey.com>

* breakpoint.c (commands_command_1): Use std::string.
(cleanup_executing_breakpoints): Remove.
(bpstat_do_actions_1): Use scoped_restore.
(bpstat_check_watchpoint): Use std::string.
(decode_static_tracepoint_spec): Likewise.
(break_range_command): Likewise.
(watch_command_1): Likewise.
(compare_breakpoints): Change argument types.
(clear_command): Use std::vector.
(cleanup_executing_breakpoints): Remove.
(update_global_location_list): Use unique_xmalloc_ptr.
(strace_command): Remove unused declaration.
gdb/ChangeLog
gdb/breakpoint.c