diff options
author | John Gilmore <gnu@cygnus> | 1992-10-06 09:33:15 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1992-10-06 09:33:15 +0000 |
commit | b5af69c3366b775b8fbf2e4cd51c3e39cb9330da (patch) | |
tree | 0a42c4daa04315a301139ec6370444a5d16b406d /gdb/language.h | |
parent | 48ab6c0e1d3d4b2d8091d3e25b4a6c0dff270288 (diff) | |
download | gdb-b5af69c3366b775b8fbf2e4cd51c3e39cb9330da.zip gdb-b5af69c3366b775b8fbf2e4cd51c3e39cb9330da.tar.gz gdb-b5af69c3366b775b8fbf2e4cd51c3e39cb9330da.tar.bz2 |
* language.c, language.h: Move saved_language out to global
expected_language. Set expected_language when user expectation
changes.
* language.c (language_info): Don't print type/range checking gub.
* main.c (main): Set expected language.
(execute_command): Check against expected language.
* symfile.c (set_initial_language): Set expected language.
Diffstat (limited to 'gdb/language.h')
-rw-r--r-- | gdb/language.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/language.h b/gdb/language.h index 16030a5..95eef2b 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -95,6 +95,11 @@ const struct op_print extern const struct language_defn *current_language; +/* Pointer to the language_defn expected by the user, e.g. the language + of main(), or the language we last mentioned in a message, or C. */ + +extern const struct language_defn *expected_language; + /* language_mode == language_mode_auto: current_language automatically set upon selection of scope (e.g. stack frame) |