[PATCHv4 0/3] Remove some uses of VEC

Andrew Burgess
2019-09-26T11:41:21Z

Only patches #1 and #2 have changed.

#1 - Update with Markus's feedback, and added new nullptr safe
methods to get the size and empty status of the new vector.
Use these throughout and remove lots of assertions.

#2 - Minor updates from Markus's feedback. Moves a vector
allocation out of a loop, and allocates the vector in
btrace_maint_update_packets.

The code is available for testing from here:

https://github.com/T-J-Teru/binutils-gdb/tree/gdb-remove-vec

Thanks,
Andrew

---

Andrew Burgess (3):
gdb: Remove a VEC from gdbsupport/btrace-common.h
gdb: Change a VEC to std::vector in btrace.{c,h}
gdb: Remove a use of VEC from dwarf2read.{c,h}

gdb/ChangeLog | 50 +++++++++++++++++++++
gdb/btrace.c | 98 +++++++++++++++++++-----------------------
gdb/btrace.h | 5 +--
gdb/dwarf2read.c | 17 ++++----
gdb/dwarf2read.h | 3 --
gdb/gdbserver/ChangeLog | 5 +++
gdb/gdbserver/linux-low.c | 8 +---
gdb/gdbsupport/btrace-common.c | 18 ++++----
gdb/gdbsupport/btrace-common.h | 38 ++++++++++++----
gdb/nat/linux-btrace.c | 16 +++----
10 files changed, 157 insertions(+), 101 deletions(-)

--
2.14.5