binutils-gdb/gdb/mi
Simon Marchi a79b1bc6f6 Get rid of VEC(mem_range_s)
This patch replaces the last usages of VEC(mem_range_s) with
std::vector<mem_range>.  This allows getting rid of a few cleanups and
of the DEF_VEC_O(mem_range_s).

I added a test for normalize_mem_ranges to make sure I didn't break
anything there.

Regtested on the buildbot.

gdb/ChangeLog:

	* memrange.h (struct mem_range): Define operator< and operator==.
	(mem_range_s): Remove.
	(DEF_VEC_O (mem_range_s)): Remove.
	(normalize_mem_ranges): Change parameter type to std::vector.
	* memrange.c (compare_mem_ranges): Remove.
	(normalize_mem_ranges): Change parameter type to std::vector,
	adjust to vector change.
	* exec.c (section_table_available_memory): Return vector, remove
	parameter.
	(section_table_read_available_memory): Adjust to std::vector
	change.
	* remote.c (remote_read_bytes): Adjust to std::vector
	change.
	* tracepoint.h (traceframe_available_memory): Change parameter
	type to std::vector.
	* tracepoint.c (traceframe_available_memory): Change parameter
	type to std::vector, adjust.
	* gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
	std::vector change.
	* gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
	unittests/memrange-selftests.c.
	(SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
	* gdb/unittests/memrange-selftests.c: New file.
2017-10-16 11:07:18 -04:00
..
ChangeLog-1999-2003
mi-cmd-break.c Eliminate catch_exceptions/catch_exceptions_with_msg 2017-10-10 17:01:25 +01:00
mi-cmd-break.h Change setup_breakpoint_reporting to return a scoped_restore 2017-09-11 16:15:07 -06:00
mi-cmd-catch.c Eliminate catch_exceptions/catch_exceptions_with_msg 2017-10-10 17:01:25 +01:00
mi-cmd-disas.c Don't copy a string in mi_cmd_disassemble 2017-09-29 21:12:13 -06:00
mi-cmd-env.c Get rid of "gdb_dirbuf" and use "getcwd (NULL, 0)" 2017-09-22 13:28:16 -04:00
mi-cmd-file.c Use ui_out_emit_tuple in more places 2017-09-09 13:46:05 -06:00
mi-cmd-info.c Use a std::vector for ada_exceptions_list 2017-09-29 21:12:17 -06:00
mi-cmd-stack.c
mi-cmd-target.c
mi-cmd-var.c Remove cleanups from mi-cmd-var.c 2017-09-29 21:12:12 -06:00
mi-cmds.c Remove unnecessary function prototypes. 2017-09-09 11:02:37 -07:00
mi-cmds.h
mi-common.c
mi-common.h
mi-console.c
mi-console.h
mi-getopt.c
mi-getopt.h
mi-interp.c Eliminate catch_exceptions/catch_exceptions_with_msg 2017-10-10 17:01:25 +01:00
mi-interp.h
mi-main.c Get rid of VEC(mem_range_s) 2017-10-16 11:07:18 -04:00
mi-main.h
mi-out.c
mi-out.h
mi-parse.c Remove unused declaration 2017-09-29 21:12:13 -06:00
mi-parse.h Use DISABLE_COPY_AND_ASSIGN 2017-09-19 10:10:03 +01:00
mi-symbol-cmds.c