binutils-gdb/gdb/mi
Tom Tromey 386c8614d5 Remove free_memory_read_result_vector
This changes read_memory_robust to return a std::vector, allowing the
removal of free_memory_read_result_vector and associated cleanups.
This patch also changes the functions it touches to be a bit more
robust with regards to deallocation; it's perhaps possible that
read_memory_robust could have leaked in some situations.

This patch is based on my earlier series to remove some MI cleanups.
Regression tested by the buildbot.

gdb/ChangeLog
2017-09-29  Tom Tromey  <tom@tromey.com>

	* target.c (read_whatever_is_readable): Change type of "result".
	Update.
	(free_memory_read_result_vector): Remove.
	(read_memory_robust): Change return type.  Update.
	* mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update.  Use
	bin2hex, std::string.
	* target.h (memory_read_result_s): Remove typedef.
	(free_memory_read_result_vector): Remove.
	(read_memory_robust): Return std::vector.
2017-09-29 21:12:19 -06:00
..
ChangeLog-1999-2003
mi-cmd-break.c Remove cleanups from mi_cmd_break_insert_1 2017-09-29 21:12:11 -06:00
mi-cmd-break.h
mi-cmd-catch.c
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
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
mi-cmds.h
mi-common.c
mi-common.h
mi-console.c
mi-console.h
mi-getopt.c
mi-getopt.h
mi-interp.c Remove make_cleanup_restore_target_terminal 2017-09-20 16:09:50 -06:00
mi-interp.h
mi-main.c Remove free_memory_read_result_vector 2017-09-29 21:12:19 -06: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