binutils-gdb/gdb/mi
Simon Marchi c252925ccc Remove VEC(tsv_s), use std::vector instead
This patch removes VEC(tsv_s), using an std::vector instead.  I C++ified
trace_state_variable a bit in the process, using std::string for the
name.  I also thought it would be nicer to pass a const reference to
target_download_trace_state_variable, since we know it will never be
NULL.  This highlighted that the make-target-delegates script didn't
handle references well, so I adjusted this as well.  It will surely be
useful in the future.

gdb/ChangeLog:

	* tracepoint.h (struct trace_state_variable): Add constructor.
	<name>: Change type to std::string.
	* tracepoint.c (tsv_s): Remove.
	(DEF_VEC_O(tsv_s)): Remove.
	(tvariables): Change to std::vector.
	(create_trace_state_variable): Adjust to std::vector.
	(find_trace_state_variable): Likewise.
	(find_trace_state_variable_by_number): Likewise.
	(delete_trace_state_variable): Likewise.
	(trace_variable_command): Adjust to std::string.
	(delete_trace_variable_command): Likewise.
	(tvariables_info_1): Adjust to std::vector.
	(save_trace_state_variables): Likewise.
	(start_tracing): Likewise.
	(merge_uploaded_trace_state_variables): Adjust to std::vector
	and std::string.
	* target.h (struct target_ops)
	<to_download_trace_state_variable>: Pass reference to
	trace_state_variable.
	* target-debug.h (target_debug_print_const_trace_state_variable_r): New.
	* target-delegates.c: Re-generate.
	* mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
	(mi_tsv_deleted): Likewise.
	* mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
	* remote.c (remote_download_trace_state_variable): Change
	pointer to reference and adjust.
	* make-target-delegates (parse_argtypes): Handle references.
	(write_function_header): Likewise.
	(munge_type): Likewise.
2018-04-09 15:16:19 -04:00
..
ChangeLog-1999-2003
mi-cmd-break.c Convert observers to C++ 2018-03-19 09:37:49 -06:00
mi-cmd-break.h
mi-cmd-catch.c (Ada) Add gdb-mi support for stopping at start of exception handler. 2018-01-31 13:42:30 +01:00
mi-cmd-disas.c
mi-cmd-env.c Move some declarations to source.h 2018-02-14 08:09:52 -07:00
mi-cmd-file.c
mi-cmd-info.c
mi-cmd-stack.c Change frame_filter_flags to use DEF_ENUM_FLAGS_TYPE 2018-02-26 09:37:03 -07:00
mi-cmd-target.c
mi-cmd-var.c
mi-cmds.c (Ada) Add gdb-mi support for stopping at start of exception handler. 2018-01-31 13:42:30 +01:00
mi-cmds.h (Ada) Add gdb-mi support for stopping at start of exception handler. 2018-01-31 13:42:30 +01:00
mi-common.c
mi-common.h
mi-console.c Implement write_async_safe for mi_console_file (PR 22299) 2018-04-07 13:48:06 -04:00
mi-console.h Implement write_async_safe for mi_console_file (PR 22299) 2018-04-07 13:48:06 -04:00
mi-getopt.c
mi-getopt.h
mi-interp.c Remove VEC(tsv_s), use std::vector instead 2018-04-09 15:16:19 -04:00
mi-interp.h
mi-main.c Remove VEC(tsv_s), use std::vector instead 2018-04-09 15:16:19 -04:00
mi-main.h
mi-out.c
mi-out.h
mi-parse.c
mi-parse.h
mi-symbol-cmds.c