summaryrefslogtreecommitdiff
path: root/gdb/testsuite/ChangeLog
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-10-17 18:29:27 +0000
committerTom Tromey <tromey@redhat.com>2013-10-17 18:29:27 +0000
commitd457a0ef127b9827bd0d873d5943eae70c6c69c5 (patch)
tree490c21e215278bacf3a4139f7d6a891cfbce632c /gdb/testsuite/ChangeLog
parentffecfbcfeeddd2815d61f4889aadf221a351f7a1 (diff)
downloadgdb-d457a0ef127b9827bd0d873d5943eae70c6c69c5.tar.gz
fix for PR gdb/15995
This patch fixes PR gdb/15995. The bug here is that gdb's printf command does not flush the output stream. This makes a printf that is not newline-terminated interleave incorrectly with other forms of output, such as that generated via a call to an external program using "shell". I note that the "output" command already does this flushing. The fix is to call gdb_flush in printf_command. Built and regtested on x86-64 Fedora 18. New test case included. PR gdb/15995: * printcmd.c (printcmd): Call gdb_flush. * gdb.base/printcmds.exp (test_printf): Test printf flushing.
Diffstat (limited to 'gdb/testsuite/ChangeLog')
-rw-r--r--gdb/testsuite/ChangeLog4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 886338eab41..634184a1e8b 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2013-10-17 Tom Tromey <tromey@redhat.com>
+
+ * gdb.base/printcmds.exp (test_printf): Test printf flushing.
+
2013-10-14 Tom Tromey <tromey@redhat.com>
* gdb.dwarf2/dwzbuildid.exp (write_dwarf_file): Pass explicit test