Remove a VEC from s390-linux-nat.c
authorTom Tromey <tromey@adacore.com>
Mon, 15 Jul 2019 17:52:02 +0000 (11:52 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 17 Jul 2019 13:29:58 +0000 (07:29 -0600)
commitd72a9b85651c872378f6dd732cb578f6f055a9b3
tree5787b3f99166e211a4bb17d60d9ff0aeef55437b
parent8dc0818eb2c449d553065b57e6953436896c6e5a
Remove a VEC from s390-linux-nat.c

This removes a use of VEC fro s390-linux-nat.c, replacing it with
std::vector.

Tested using the Fedora-s390x-m64 buildbot builder.

gdb/ChangeLog
2019-07-17  Tom Tromey  <tromey@adacore.com>

* s390-linux-nat.c (s390_watch_area): Remove typedef.  Don't
declare VEC.
(struct s390_debug_reg_state) <watch_areas, break_areas>: Now
std::vector.
(struct s390_process_info): Add initializers.
(s390_add_process): Use new.
(s390_linux_nat_target::low_forget_process): Use delete.
(s390_linux_nat_target::low_new_fork)
(s390_linux_nat_target::stopped_by_watchpoint)
(s390_linux_nat_target::low_prepare_to_resume)
(s390_linux_nat_target::insert_watchpoint)
(s390_linux_nat_target::insert_hw_breakpoint)
(s390_linux_nat_target::remove_watchpoint)
(s390_linux_nat_target::remove_hw_breakpoint): Update.
gdb/ChangeLog
gdb/s390-linux-nat.c