help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs doesn't show printf() output during debugging.


From: Eli Zaretskii
Subject: Re: Emacs doesn't show printf() output during debugging.
Date: Wed, 17 Aug 2005 21:18:28 +0300

> From: "Lao JM" <rolexletter@hotmail.com>
> Date: Wed, 17 Aug 2005 13:05:57 +0000
> 
> When I debug my C program, I can't see the printf() output in any buffer.
> However, I can provide input to scanf() in the GUD buffer. What should 
> I do to show the output? I am using Emacs 21.3.50.1 (CVS) on Windows2000.

What port of GDB is that?

Also, is it possible that your program doesn't fflush the standard
output after it calls printf?  I think redirecting stdout to a pipe
changes its buffering, so without fflush the characters may stay
buffered longer than with the console.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]