]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* printcmd.c (printf_command): Pass dummy argument to
authorTom Tromey <tromey@redhat.com>
Thu, 4 Mar 2010 18:25:03 +0000 (18:25 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 4 Mar 2010 18:25:03 +0000 (18:25 +0000)
printf_filtered.

gdb/ChangeLog
gdb/printcmd.c

index ff56bcef8d9d31bc15b3471a640c9d17103c8bae..c18065443e3beadb2fb31a7236b050f3ebf1a419 100644 (file)
@@ -1,3 +1,8 @@
+2010-03-04  Tom Tromey  <tromey@redhat.com>
+
+       * printcmd.c (printf_command): Pass dummy argument to
+       printf_filtered.
+
 2010-03-03  Tom Tromey  <tromey@redhat.com>
 
        PR mi/11098:
index 5e5ef8e1be2afcc9b0b681e6a4052eea1fc486c1..346c2e270088ad44941870f832e91d5e8db2d025 100644 (file)
@@ -2645,8 +2645,10 @@ printf_command (char *arg, int from_tty)
     /* Print the portion of the format string after the last argument.
        Note that this will not include any ordinary %-specs, but it
        might include "%%".  That is why we use printf_filtered and not
-       puts_filtered here.  */
-    printf_filtered (last_arg);
+       puts_filtered here.  Also, we pass a dummy argument because
+       some platforms have modified GCC to include -Wformat-security
+       by default, which will warn here if there is no argument.  */
+    printf_filtered (last_arg, 0);
   }
   do_cleanups (old_cleanups);
 }