From: Hui Zhu <teawater@gmail.com>
To: gdb-patches ml <gdb-patches@sourceware.org>
Subject: [PATCH] Fix bug 15186 Agent style dprintf does not buffer output properly
Date: Fri, 19 Apr 2013 14:32:00 -0000 [thread overview]
Message-ID: <CANFwon2yzXniBG81PLqQf-m3Ctj0_fku0t-8TDumMnsppnXPgw@mail.gmail.com> (raw)
[-- 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
next reply other threads:[~2013-04-19 10:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-19 14:32 Hui Zhu [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CANFwon2yzXniBG81PLqQf-m3Ctj0_fku0t-8TDumMnsppnXPgw@mail.gmail.com \
--to=teawater@gmail.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox