binutils-gdb/gdb/mi
Tom Tromey bc18fbb575 Change ada_catchpoint::excep_string to be a std::string
This changes ada_catchpoint::excep_string to be a std::string and then
fixes up all t he users.

This found a memory leak in catch_ada_exception_command_split, where
"cond" was copied but never freed.

I changed the type of the "cond_string" argument to
catch_ada_exception_command_split to follow the rule that out
parameters should be pointers and not references.

This patch enables the removal of some cleanups and also the function
ada_get_next_arg.

ChangeLog
2018-05-21  Tom Tromey  <tom@tromey.com>

	* mi/mi-cmd-catch.c (mi_cmd_catch_assert)
	(mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
	* ada-lang.h (create_ada_exception_catchpoint): Update.
	* ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
	std::string.
	(create_excep_cond_exprs, ~ada_catchpoint)
	(should_stop_exception, print_one_exception)
	(print_mention_exception, print_recreate_exception): Update.
	(ada_get_next_arg): Remove.
	(catch_ada_exception_command_split): Use std::string.  Change type
	of "excep_string", "cond_string".
	(catch_ada_exception_command): Update.
	(create_ada_exception_catchpoint): Change type of excep_string.
	(ada_exception_sal): Remove excep_string parameter.
	(~ada_catchpoint): Remove.
2018-05-21 10:01:15 -06:00
..
ChangeLog-1999-2003
mi-cmd-break.c Use function_view in cli-script.c 2018-05-04 15:58:08 -06:00
mi-cmd-break.h
mi-cmd-catch.c Change ada_catchpoint::excep_string to be a std::string 2018-05-21 10:01:15 -06: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 Add missing "breaks" 2018-05-04 22:04:46 -06:00
mi-cmd-target.c
mi-cmd-var.c
mi-cmds.c
mi-cmds.h
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 Add missing "breaks" 2018-05-04 22:04:46 -06:00
mi-main.h
mi-out.c
mi-out.h Make do_is_mi_like_p const. 2018-04-30 12:59:03 -06:00
mi-parse.c
mi-parse.h
mi-symbol-cmds.c