gdb/
authorYao Qi <yao@codesourcery.com>
Tue, 27 Nov 2012 07:41:43 +0000 (07:41 +0000)
committerYao Qi <yao@codesourcery.com>
Tue, 27 Nov 2012 07:41:43 +0000 (07:41 +0000)
2012-11-27  Yao Qi  <yao@codesourcery.com>

* symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
warning.
Add i18n markup.

gdb/ChangeLog
gdb/symtab.c

index 4741adfc7c7552404fb644764873b026f18004a2..6957b73d6314f53170312ce465462243f95265aa 100644 (file)
@@ -1,3 +1,9 @@
+2012-11-27  Yao Qi  <yao@codesourcery.com>
+
+       * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
+       warning.
+       Add i18n markup.
+
 2012-11-26  Alexander Larsson  <alexl@redhat.com>
            Jan Kratochvil  <jan.kratochvil@redhat.com>
            Tom Tromey  <tromey@redhat.com>
index 05943cf9149f943692fbb35af57bfb8e7e203249..c4bd13da8d223dc992a3c818601a7b4ee7a850ab 100644 (file)
@@ -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);