aboutsummaryrefslogtreecommitdiff
path: root/gdb/language.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-09-20 23:59:13 +0000
committerJohn Gilmore <gnu@cygnus>1991-09-20 23:59:13 +0000
commit0b7984094d3d23909c21b28bc0b03d52f9bdd04a (patch)
tree517d4a2c384aef4ced69ab228ba1c368aaec63ac /gdb/language.c
parent5f3d478e7debb774f55c82dd60e65af242863f83 (diff)
downloadgdb-0b7984094d3d23909c21b28bc0b03d52f9bdd04a.zip
gdb-0b7984094d3d23909c21b28bc0b03d52f9bdd04a.tar.gz
gdb-0b7984094d3d23909c21b28bc0b03d52f9bdd04a.tar.bz2
* language.c (set_language_command): Print useful help message,
and restore the language string after giving help. * valprint.c (typedef_print): Print typedef in C or M2. * symtab.c (list_symbols): Use it.
Diffstat (limited to 'gdb/language.c')
-rw-r--r--gdb/language.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/language.c b/gdb/language.c
index 296a6d5..4cef749 100644
--- a/gdb/language.c
+++ b/gdb/language.c
@@ -121,8 +121,10 @@ set_language_command (str, from_tty)
if (!language || !language[0]) {
printf("The currently understood settings are:\n\n\
local or auto Automatic setting based on source file\n\
-c or cc Always parse in C syntax\n\
-mod or m2 Always parse in Modula-2 syntax\n");
+c Use the C language\n\
+modula-2 Use the Modula-2 language\n");
+ /* Restore the silly string. */
+ set_language(current_language->la_language);
return;
}
@@ -1056,7 +1058,7 @@ _initialize_language()
set = add_set_cmd ("language", class_support, var_string_noescape,
(char *)&language,
- "Set the current working language.",
+ "Set the current source language.",
&setlist);
show = add_show_from_set (set, &showlist);
set->function = set_language_command;