Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Dave Korn" <dave.korn@artimi.com>
To: "'Gordon Prieur'" <Gordon.Prieur@Sun.COM>, 	<gdb@sourceware.org>
Subject: RE: Question about when stdout is flushed in gdb/mi mode
Date: Tue, 19 Feb 2008 17:52:00 -0000	[thread overview]
Message-ID: <007701c87315$e23a7b10$2e08a8c0@CAM.ARTIMI.COM> (raw)
In-Reply-To: <47BB0490.6070703@sun.com>

On 19 February 2008 16:32, Gordon Prieur wrote:

>     Looking at the gdb options, I don't see anyway of forcing a
> flush of stdout. Since stdout isn't a variable and libc is typically
> optimized without debug information, neither "fflush(stdout)" nor
> "fflush(&__iob[1])" work. Is there anyway to force gdb to flush
> stdout when it stops?

  You could always rely on the default behaviour of "fflush (NULL)", if you
don't mind other descriptors getting flushed too.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


  reply	other threads:[~2008-02-19 16:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-19 16:39 Gordon Prieur
2008-02-19 17:52 ` Dave Korn [this message]
2008-02-19 18:20 ` Daniel Jacobowitz

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='007701c87315$e23a7b10$2e08a8c0@CAM.ARTIMI.COM' \
    --to=dave.korn@artimi.com \
    --cc=Gordon.Prieur@Sun.COM \
    --cc=gdb@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