Remove a VEC from remote.c
authorTom Tromey <tom@tromey.com>
Tue, 24 Jul 2018 01:47:39 +0000 (19:47 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 9 Nov 2018 23:04:03 +0000 (16:04 -0700)
commiteefce37f62d87a65f63e12e421a3f727b2685e9d
tree65202f942e850bde312cebcdf8d59a5b9aef1ace
parent2179fbc36d23f29a83fb3dfcac0fc7d1fb31b8e8
Remove a VEC from remote.c

This removes the VEC from remote_g_packet_data, replacing it with a
std::vector.  This is a bit odd in that this object is never
destroyed, and is obstack-allocated.  I believe a gdbarch is never
destroyed, so this seemed ok.

Tested by the buildbot.

gdb/ChangeLog
2018-11-09  Tom Tromey  <tom@tromey.com>

* remote.c (remote_g_packet_guess_s): Remove typedef and DEF_VEC.
(struct remote_g_packet_data): Derive from allocate_on_obstack.
<guesses>: Now a std::vector.
(remote_g_packet_data_init, register_remote_g_packet_guess):
Update.
(remote_read_description_p): Update.  Return bool.
(remote_target::read_description): Update.
(struct remote_g_packet_guess): Add constructor.
gdb/ChangeLog
gdb/remote.c