binutils-gdb/gdb/mi
Tom Tromey e3ad2841b1 Remove make_cleanup_restore_current_language
This patch replaces make_cleanup_restore_current_language with an RAII
class that saves the current language, and restores it when the object
is destroyed.

ChangeLog
2017-08-03  Tom Tromey  <tom@tromey.com>

	* utils.h (make_cleanup_restore_current_language): Remove.
	* utils.c (do_restore_current_language)
	(make_cleanup_restore_current_language): Remove.
	* parse.c (parse_exp_in_context_1)
	(parse_expression_with_language): Use
	scoped_restore_current_language.
	* mi/mi-main.c (mi_cmd_execute): Use
	scoped_restore_current_language.
	* language.h (scoped_restore_current_language): New class.
2017-08-03 07:58:58 -06:00
..
ChangeLog-1999-2003
mi-cmd-break.c Use obstack_grow_str 2017-06-28 15:00:27 +01:00
mi-cmd-break.h
mi-cmd-catch.c -Wwrite-strings: Constify mi_cmd_argv_ftype's 'command' parameter 2017-04-05 19:21:34 +01:00
mi-cmd-disas.c -Wwrite-strings: Constify mi_cmd_argv_ftype's 'command' parameter 2017-04-05 19:21:34 +01:00
mi-cmd-env.c C++ify gdb/common/environ.c 2017-06-20 08:59:27 -04:00
mi-cmd-file.c Use ui_out_emit_list 2017-04-22 09:47:01 -06:00
mi-cmd-info.c Introduce and use ui_out_emit_table 2017-08-03 07:58:51 -06:00
mi-cmd-stack.c Use ui_out_emit_list 2017-04-22 09:47:01 -06:00
mi-cmd-target.c -Wwrite-strings: Constify mi_cmd_argv_ftype's 'command' parameter 2017-04-05 19:21:34 +01:00
mi-cmd-var.c Use ui_out_emit_list 2017-04-22 09:47:01 -06:00
mi-cmds.c
mi-cmds.h -Wwrite-strings: Constify mi_cmd_argv_ftype's 'command' parameter 2017-04-05 19:21:34 +01:00
mi-common.c
mi-common.h
mi-console.c
mi-console.h
mi-getopt.c
mi-getopt.h
mi-interp.c Use ui_out_emit_list 2017-04-22 09:47:01 -06:00
mi-interp.h
mi-main.c Remove make_cleanup_restore_current_language 2017-08-03 07:58:58 -06:00
mi-main.h
mi-out.c
mi-out.h
mi-parse.c C++ify mi_parse 2017-04-12 11:16:18 -06:00
mi-parse.h C++ify mi_parse 2017-04-12 11:16:18 -06:00
mi-symbol-cmds.c Use ui_out_emit_list 2017-04-22 09:47:01 -06:00