From a0e0ef55c6339931e689918519a756b6a5bcdacb Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 3 Mar 2010 18:05:05 +0000 Subject: gdb 2010-03-03 Dainis Jonitis PR gdb/11345: * printcmd.c (printf_command): Print end of format string using printf_filtered. gdb/testsuite 2010-03-03 Tom Tromey PR gdb/11345: * gdb.base/printcmds.exp (test_printf): Add test. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.base/printcmds.exp | 4 ++++ 2 files changed, 9 insertions(+) (limited to 'gdb/testsuite') diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 7bcc512..7a55564 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-03-03 Tom Tromey + + PR gdb/11345: + * gdb.base/printcmds.exp (test_printf): Add test. + 2010-03-02 H.J. Lu * gdb.arch/amd64-byte.exp: New. diff --git a/gdb/testsuite/gdb.base/printcmds.exp b/gdb/testsuite/gdb.base/printcmds.exp index 5598bde..9c2cd6b 100644 --- a/gdb/testsuite/gdb.base/printcmds.exp +++ b/gdb/testsuite/gdb.base/printcmds.exp @@ -686,6 +686,10 @@ proc test_printf {} { # Regression test for C lexer bug. gdb_test "printf \"%c\\n\", \"x\"\[1,0\]" "x" + + # Regression test for "%% at end of format string. + # See http://sourceware.org/bugzilla/show_bug.cgi?id=11345 + gdb_test "printf \"%%%d%%\\n\", 5" "%5%" } #Test printing DFP values with printf -- cgit v1.1