forked from Imagelibrary/binutils-gdb
gdb
2010-03-03 Dainis Jonitis <jonitis@gmail.com> PR gdb/11345: * printcmd.c (printf_command): Print end of format string using printf_filtered. gdb/testsuite 2010-03-03 Tom Tromey <tromey@redhat.com> PR gdb/11345: * gdb.base/printcmds.exp (test_printf): Add test.
This commit is contained in:
@@ -2642,8 +2642,11 @@ printf_command (char *arg, int from_tty)
|
||||
/* Skip to the next substring. */
|
||||
current_substring += strlen (current_substring) + 1;
|
||||
}
|
||||
/* Print the portion of the format string after the last argument. */
|
||||
puts_filtered (last_arg);
|
||||
/* 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);
|
||||
}
|
||||
do_cleanups (old_cleanups);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user