binutils-gdb/gdb/mi
Simon Marchi 129bce3604 gdb: remove language_auto
I think that the language_auto enumerator and the auto_language class
can be removed.  There isn't really an "auto" language, it's only a
construct of the "set language" command to say "pick the appropriate
language automatically".  But "auto" is never the current language.  The
`current_language` points to the current effective language, and the
fact that we're in "auto language" mode is noted by the language_mode
global.

 - Change set_language to handle the "auto" (and "local", which is a
   synonym) early, instead of in the for loop.  I think it makes the two
   cases (auto vs explicit language) more clearly separated anyway.

 - Adjust add_set_language_command to hard-code the "auto" string,
   instead of using the "auto" language definition.

 - Remove auto_language, rename auto_or_unknown_language to
   unknown_language and move the bits of the existing unknown_language
   in there.

 - Remove the set_language at the end of _initialize_language.  I think
   it's not needed, because we call set_language in gdb_init, after all
   _initialize functions are called.  There is some chance that an
   _initialize function that runs after _initialize_language implicitly
   depends on current_language being set, but my testsuite runs haven't
   found anything like that.

 - Use language_unknown instead of language_auto when creating a minimal
   symbol (minimal_symbol_reader::record_full).  I think that this value
   is used to indicate that we don't know the symbol of the minimal
   symbol (yet), so language_unknown makes sense to me.  Update a
   condition accordingly in ada-lang.c.  symbol_find_demangled_name also
   appears to "normalize" this value from "unknown" to "auto", remove
   that part and update the condition to just check for
   language_unknown.

Change-Id: I47bcd6c15f607d9818f2e6e413053c2dc8ec5034
Reviewed-By: Tom Tromey <tom@tromey.com>
2023-04-21 14:09:42 -04:00
..
ChangeLog-1999-2003
mi-cmd-break.c Catch gdb_exception_error instead of gdb_exception (in many places) 2023-02-27 16:20:39 -07:00
mi-cmd-break.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
mi-cmd-catch.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
mi-cmd-disas.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
mi-cmd-env.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
mi-cmd-file.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
mi-cmd-info.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
mi-cmd-stack.c Remove ALL_BLOCK_SYMBOLS 2023-02-19 12:51:06 -07:00
mi-cmd-target.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
mi-cmd-var.c gdb, gdbserver, gdbsupport: fix whitespace issues 2023-03-09 16:32:00 -05:00
mi-cmds.c gdb, gdbserver, gdbsupport: fix whitespace issues 2023-03-09 16:32:00 -05:00
mi-cmds.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
mi-common.c gdb/mi: add no-history stop reason 2023-01-06 10:51:50 +01:00
mi-common.h gdb/mi: add no-history stop reason 2023-01-06 10:51:50 +01:00
mi-console.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
mi-console.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
mi-getopt.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
mi-getopt.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
mi-interp.c gdb: make find_thread_ptid a process_stratum_target method 2023-04-04 21:05:31 -04:00
mi-interp.h Simplify interp::exec / interp_exec - let exceptions propagate 2023-02-08 17:28:42 +00:00
mi-main.c QUIT processing w/ explicit throw for gdb_exception_forced_quit 2023-02-27 16:20:39 -07:00
mi-main.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
mi-out.c Remove mi_version function 2023-03-20 13:13:12 -06:00
mi-out.h Remove mi_version function 2023-03-20 13:13:12 -06:00
mi-parse.c gdb: remove language_auto 2023-04-21 14:09:42 -04:00
mi-parse.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
mi-symbol-cmds.c Change linetables to be objfile-independent 2023-03-11 08:47:40 -07:00