binutils-gdb/gdb/nat
Andrew Burgess 46f29a9a26 gdb: Remove a VEC from gdbsupport/btrace-common.h
Converts a VEC into a std::vector in gdbsupport/btrace-common.h.  This
commit just performs a mechanical conversion and doesn't do any
refactoring.  One consequence of this is that the std::vector must
actually be a pointer to std::vector as it is placed within a union.
It might be possible in future to refactor to a class hierarchy and
remove the need for a union, but I'd rather have that be a separate
change to make it easier to see the evolution of the code.

gdb/ChangeLog:

	* btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
	make accesses into the vector constant references.
	(btrace_add_pc): Update for std::vector.
	(btrace_stitch_bts): Likewise.
	(parse_xml_btrace_block): Likewise.
	(btrace_maint_update_packets): Likewise.
	(btrace_maint_print_packets): Likewise.
	(maint_info_btrace_cmd): Likewise.
	* gdbsupport/btrace-common.c (btrace_data::fini): Update for
	std::vector.
	(btrace_data::empty): Likewise.
	(btrace_data_append): Likewise.
	* gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
	(typedef btrace_block_s): Delete.
	(struct btrace_block): Add constructor.
	(struct btrace_data_bts) <blocks>: Change to std::vector.
	* nat/linux-btrace.c (perf_event_read_bts): Update for
	std::vector.
	(linux_read_bts): Likewise.

gdb/gdbserver/ChangeLog:

	* linux-low.c (linux_low_read_btrace): Update for change to
	std::vector.
2019-10-02 14:05:49 +01:00
..
aarch64-linux-hw-point.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
aarch64-linux-hw-point.h Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
aarch64-linux.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
aarch64-linux.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
aarch64-sve-linux-ptrace.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
aarch64-sve-linux-ptrace.h AArch64 SVE: Support changing vector lengths for ptrace 2019-04-15 15:12:44 +01:00
aarch64-sve-linux-sigcontext.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
amd64-linux-siginfo.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
amd64-linux-siginfo.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
fork-inferior.c Revert "Improve ptrace-error detection on Linux targets" 2019-09-26 14:24:30 -04:00
fork-inferior.h Revert "Improve ptrace-error detection on Linux targets" 2019-09-26 14:24:30 -04:00
gdb_ptrace.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
gdb_thread_db.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
glibc_thread_db.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
linux-btrace.c gdb: Remove a VEC from gdbsupport/btrace-common.h 2019-10-02 14:05:49 +01:00
linux-btrace.h Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
linux-namespaces.c Change boolean options to bool instead of int 2019-09-18 09:35:12 +09:00
linux-namespaces.h Change boolean options to bool instead of int 2019-09-18 09:35:12 +09:00
linux-nat.h Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
linux-osdata.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
linux-osdata.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
linux-personality.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
linux-personality.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
linux-procfs.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
linux-procfs.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
linux-ptrace.c Revert "Improve ptrace-error detection on Linux targets" 2019-09-26 14:24:30 -04:00
linux-ptrace.h Revert "Improve ptrace-error detection on Linux targets" 2019-09-26 14:24:30 -04:00
linux-waitpid.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
linux-waitpid.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
mips-linux-watch.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
mips-linux-watch.h Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
ppc-linux.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
ppc-linux.h Remove Cell Broadband Engine debugging support 2019-09-20 23:06:57 +02:00
x86-cpuid.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
x86-dregs.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
x86-dregs.h Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
x86-gcc-cpuid.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
x86-linux-dregs.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
x86-linux-dregs.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
x86-linux.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
x86-linux.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00