diff options
Diffstat (limited to 'gdb/demangle.c')
-rw-r--r-- | gdb/demangle.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gdb/demangle.c b/gdb/demangle.c index a95227b..7b08113 100644 --- a/gdb/demangle.c +++ b/gdb/demangle.c @@ -56,6 +56,14 @@ static char *current_demangling_style_string; _initialize_demangler from libiberty_demanglers[] array. */ static const char **demangling_style_names; +static void +show_demangling_style_names(struct ui_file *file, int from_tty, + struct cmd_list_element *c, const char *value) +{ + fprintf_filtered (file, _("The current C++ demangling style is \"%s\".\n"), + value); +} + static void set_demangling_command (char *, int, struct cmd_list_element *); @@ -200,7 +208,7 @@ Set the current C++ demangling style."), _("\ Show the current C++ demangling style."), _("\ Use `set demangle-style' without arguments for a list of demangling styles."), set_demangling_command, - NULL, /* FIXME: i18n: */ + show_demangling_style_names, &setlist, &showlist); /* Set the default demangling style chosen at compilation time. */ |