Use std::vector in syscall_catchpoint
authorTom Tromey <tom@tromey.com>
Mon, 17 Jul 2017 22:58:22 +0000 (16:58 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 22 Jul 2017 22:10:42 +0000 (16:10 -0600)
commite12c9b7a0cda47a87b8203ee9906fd12f68e3666
tree2f51289e8025e64cf32836d0a31b6112d82d85c7
parent4fa8aeac1972ed07261919ce652c886160d8cf2f
Use std::vector in syscall_catchpoint

This changes syscall_catchpoint to use a std::vector rather than a VEC
for "syscalls_to_be_caught".  This simplifies the code a bit.

ChangeLog
2017-07-22  Tom Tromey  <tom@tromey.com>

* break-catch-syscall.c (syscall_catchpoint)
<syscalls_to_be_caught>: Now a std::vector<int>
(~syscall_catchpoint): Remove.
(insert_catch_syscall, remove_catch_syscall)
(breakpoint_hit_catch_syscall, print_one_catch_syscall)
(print_mention_catch_syscall, print_recreate_catch_syscall):
Update.
(create_syscall_event_catchpoint): Change type of "filter"
parameter.
(catch_syscall_split_args): Return a std::vector.
(catch_syscall_command_1, catching_syscall_number_1): Update.
gdb/ChangeLog
gdb/break-catch-syscall.c