From: Yao Qi Date: Tue, 27 Nov 2012 07:41:43 +0000 (+0000) Subject: gdb/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ca242aadec5ec762ae852ae80b67772302c534b8;p=binutils-gdb.git gdb/ 2012-11-27 Yao Qi * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args warning. Add i18n markup. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4741adfc7c7..6957b73d631 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2012-11-27 Yao Qi + + * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args + warning. + Add i18n markup. + 2012-11-26 Alexander Larsson Jan Kratochvil Tom Tromey diff --git a/gdb/symtab.c b/gdb/symtab.c index 05943cf9149..c4bd13da8d2 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -3778,10 +3778,11 @@ symtab_symbol_info (char *regexp, enum search_domain kind, int from_tty) search_symbols (regexp, kind, 0, (char **) NULL, &symbols); old_chain = make_cleanup_free_search_symbols (symbols); - printf_filtered (regexp - ? "All %ss matching regular expression \"%s\":\n" - : "All defined %ss:\n", - classnames[kind], regexp); + if (regexp != NULL) + printf_filtered (_("All %ss matching regular expression \"%s\":\n"), + classnames[kind], regexp); + else + printf_filtered (_("All defined %ss:\n"), classnames[kind]); for (p = symbols; p != NULL; p = p->next) { @@ -3791,7 +3792,7 @@ symtab_symbol_info (char *regexp, enum search_domain kind, int from_tty) { if (first) { - printf_filtered ("\nNon-debugging symbols:\n"); + printf_filtered (_("\nNon-debugging symbols:\n")); first = 0; } print_msymbol_info (p->msymbol);