Use std::vector in struct catch_syscall_inferior_data
authorTom Tromey <tom@tromey.com>
Wed, 19 Jul 2017 00:23:32 +0000 (18:23 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 22 Jul 2017 22:10:42 +0000 (16:10 -0600)
commitb6f48cb022118f838357c07d32d122e9434c0209
treedd6f0e588fe605f486653a708ff63442f4183c85
parente12c9b7a0cda47a87b8203ee9906fd12f68e3666
Use std::vector in struct catch_syscall_inferior_data

This changes struct catch_syscall_inferior_data to use a std::vector
rather than a VEC.  It also changes it to be allocated with new and
destroyed with delete.

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

* break-catch-syscall.c (struct catch_syscall_inferior_data)
<syscalls_counts>: Now a std::vector.
(get_catch_syscall_inferior_data): Use "new".
(catch_syscall_inferior_data_cleanup): Use "delete".
(insert_catch_syscall, remove_catch_syscall)
(clear_syscall_counts): Update.
gdb/ChangeLog
gdb/break-catch-syscall.c