Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Fix bug 15186 Agent style dprintf does not buffer output properly
@ 2013-04-19 14:32 Hui Zhu
  2013-04-19 18:47 ` Tom Tromey
  0 siblings, 1 reply; 7+ messages in thread
From: Hui Zhu @ 2013-04-19 14:32 UTC (permalink / raw)
  To: gdb-patches ml

[-- Attachment #1: Type: text/plain, Size: 273 bytes --]

Hi,

This patch fix http://sourceware.org/bugzilla/show_bug.cgi?id=15186

Add a fflash to make the output of dprintf can be shown at once.

Please help me review it.

Thanks,
Hui

2013-04-19  Hui Zhu  <hui@codesourcery.com>

	PR gdb/15186

	* ax.c (ax_printf): Add fflush.

[-- Attachment #2: dprintf-agent-fflash.txt --]
[-- Type: text/plain, Size: 247 bytes --]

--- a/gdb/gdbserver/ax.c
+++ b/gdb/gdbserver/ax.c
@@ -905,6 +905,7 @@ ax_printf (CORE_ADDR fn, CORE_ADDR chan,
     }
 
   free_format_pieces (fpieces);
+  fflush (stdout);
 }
 
 /* The agent expression evaluator, as specified by the GDB docs. It

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-04-25  8:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-19 14:32 [PATCH] Fix bug 15186 Agent style dprintf does not buffer output properly Hui Zhu
2013-04-19 18:47 ` Tom Tromey
2013-04-22  7:34   ` Hui Zhu
2013-04-25  6:53     ` Tom Tromey
2013-04-25 13:53       ` Hui Zhu
2013-04-25 14:19         ` Joel Brobecker
2013-04-25 17:25           ` Hui Zhu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox