binutils-gdb/gdb/gdbsupport
Andrew Burgess 554ac434b0 gdb: Change a VEC to std::vector in btrace.{c,h}
Replace a VEC with a std::vector in btrace.h, and update btrace.c to
match.  It is worth noting that this code appears to be currently
untested by the GDB testsuite.  I've tried to do a like for like
replacement when moving to std::vector, with minimal refactoring to
try and avoid introducing any bugs.

As the new vector is inside a union I've currently used a pointer to
vector, which makes the code slightly uglier than it might otherwise
be, but again, due to lack of testing I'm reluctant to start
refactoring the code in a big way.

gdb/ChangeLog:

	* btrace.c (btrace_maint_clear): Update to handle change from VEC
	to std::vector.
	(btrace_maint_decode_pt): Likewise, and move allocation of the
	vector outside of the loop.
	(btrace_maint_update_packets): Update to handle change from VEC to
	std::vector.
	(btrace_maint_print_packets): Likewise.
	(maint_info_btrace_cmd): Likewise.
	* btrace.h: Remove use of DEF_VEC_O.
	(typedef btrace_pt_packet_s): Delete.
	(struct btrace_maint_info) <packets>: Change fromm VEC to
	std::vector.
	* gdbsupport/btrace-common.h: Remove 'vec.h' include.
2019-10-02 14:05:50 +01:00
..
agent.c
agent.h
array-view.h
ax.def
break-common.h
btrace-common.c gdb: Remove a VEC from gdbsupport/btrace-common.h 2019-10-02 14:05:49 +01:00
btrace-common.h gdb: Change a VEC to std::vector in btrace.{c,h} 2019-10-02 14:05:50 +01:00
buffer.c
buffer.h
byte-vector.h
cleanups.c
cleanups.h
common-debug.c Change boolean options to bool instead of int 2019-09-18 09:35:12 +09:00
common-debug.h Change boolean options to bool instead of int 2019-09-18 09:35:12 +09:00
common-defs.h
common-exceptions.c
common-exceptions.h
common-gdbthread.h
common-inferior.h
common-regcache.c
common-regcache.h
common-types.h
common-utils.c
common-utils.h
common.host
common.m4 Move gdb-dlfcn.[ch] to gdbsupport/ 2019-08-23 13:13:18 -04:00
create-version.sh
def-vector.h
default-init-alloc.h
enum-flags.h
environ.c
environ.h
errors.c
errors.h
fileio.c
fileio.h
filestuff.c
filestuff.h
filtered-iterator.h
format.c Introduce gdb-specific %p format suffixes 2019-10-01 15:12:38 -06:00
format.h Introduce gdb-specific %p format suffixes 2019-10-01 15:12:38 -06:00
forward-scope-exit.h
function-view.h
gdb_assert.h
gdb_locale.h
gdb_optional.h
gdb_proc_service.h
gdb_ref_ptr.h
gdb_setjmp.h
gdb_signals.h
gdb_splay_tree.h
gdb_string_view.h
gdb_string_view.tcc
gdb_sys_time.h
gdb_tilde_expand.c
gdb_tilde_expand.h
gdb_unique_ptr.h
gdb_unlinker.h
gdb_vecs.c
gdb_vecs.h
gdb_wait.h
gdb-dlfcn.c Move gdb-dlfcn.[ch] to gdbsupport/ 2019-08-23 13:13:18 -04:00
gdb-dlfcn.h Revert "Improve ptrace-error detection on Linux targets" 2019-09-26 14:24:30 -04:00
hash_enum.h
host-defs.h
job-control.c
job-control.h
mingw-strerror.c
netstuff.c
netstuff.h
new-op.c
next-iterator.h
observable.h
offset-type.h
pathstuff.c
pathstuff.h
poison.h
posix-strerror.c
preprocessor.h
print-utils.c
print-utils.h
ptid.c
ptid.h
refcounted-object.h
rsp-low.c
rsp-low.h
run-time-clock.c
run-time-clock.h
safe-iterator.h
scope-exit.h
scoped_fd.h
scoped_mmap.c
scoped_mmap.h
scoped_restore.h
selftest.c
selftest.h
signals-state-save-restore.c
signals-state-save-restore.h
signals.c
symbol.h
tdesc.c
tdesc.h
traits.h
underlying.h
valid-expr.h
vec.c
vec.h
version.h
x86-xstate.h
xml-utils.c
xml-utils.h