binutils-gdb/gdb/mi
Tom Tromey d47600c85d Add another constructor to scoped_restore_current_language
While working on something else, I noticed that this is relatively
common:

  scoped_restore_current_language save;
  set_language (something);

This patch adds a second constructor to
scoped_restore_current_language to simplify this idiom.

Reviewed-By: Tom de Vries <tdevries@suse.de>
2024-08-15 10:14:37 -06:00
..
ChangeLog-1999-2003
mi-cmd-break.c gdb: remove unused includes in utils.h 2024-05-30 22:43:52 -04:00
mi-cmd-break.h
mi-cmd-catch.c
mi-cmd-disas.c
mi-cmd-env.c
mi-cmd-file.c gdb: pass program space to get_current_source_symtab_and_line 2024-07-15 14:34:12 -04:00
mi-cmd-info.c
mi-cmd-stack.c
mi-cmd-target.c
mi-cmd-var.c
mi-cmds.c
mi-cmds.h gdb: remove unused includes in utils.h 2024-05-30 22:43:52 -04:00
mi-common.c
mi-common.h
mi-console.c
mi-console.h
mi-getopt.c
mi-getopt.h
mi-interp.c gdb: remove unused includes in utils.h 2024-05-30 22:43:52 -04:00
mi-interp.h
mi-main.c Add another constructor to scoped_restore_current_language 2024-08-15 10:14:37 -06:00
mi-main.h
mi-out.c
mi-out.h gdb: remove unused includes in utils.h 2024-05-30 22:43:52 -04:00
mi-parse.c
mi-parse.h
mi-symbol-cmds.c gdb: drop struct keyword when using bound_minimal_symbol 2024-08-12 10:31:09 -04:00