This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: stdout in gdb
- To: "Topas" <yrwang at cc dot nctu dot edu dot tw>
- Subject: Re: stdout in gdb
- From: egor duda <deo at logos-m dot ru>
- Date: Tue, 22 May 2001 11:41:13 +0400
- CC: cygwin at cygwin dot com
- Organization: deo
- References: <NFBBJHGBKLKEAOHMECHMAEDDCAAA.yrwang@cc.nctu.edu.tw>
- Reply-To: egor duda <cygwin at cygwin dot com>
Hi!
Tuesday, 22 May, 2001 Topas yrwang@cc.nctu.edu.tw wrote:
T> Whenever I run a program under gdb, I find that the stdout is
T> full-buffered. So, I write a simple program to check the problem,
T> int main()
T> {
T> printf("%s\n", ttyname(1));
T> printf("%d\n", isatty(1));
T> printf("%d\n", stdout->_flags & 0x0001);
T> return 0;
T> }
T> the output of the program is
T> /dev/tty0
T> 1
T> 1
T> but when I run the program under gdb, the output becomes
T> (null)
T> 0
T> 0
T> Is there any options/setting I miss in gdb?
probably.
(gdb) set new-console
Egor. mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple