From: Ron Miller Newsgroups: comp.os.msdos.djgpp Subject: Help with GDB ... gdb always exits and stdout goes missing Date: Sat, 21 Nov 1998 17:21:14 -0800 Organization: Posted via Supernews, http://www.supernews.com - Discussions start here! Lines: 44 Message-ID: <3657670A.7BE5E06@synopsys.com> NNTP-Posting-Host: 204.176.20.252 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: 911697696 KZBGBQC4S14FCCCB0C usenet58.supernews.com X-Complaints-To: newsabuse AT supernews DOT com X-Mailer: Mozilla 4.04 [en] (WinNT; I) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, I have a couple of real simple things in gdb that don't seem to be working (or maybe they are limitations of the DOS version?) 1) If I set a breakpoint and then continue, the debugger exits when I continue. For example, here is the output of running a "hello world" program ... (gdb) run Starting program: a.out Hello world Program exited normally. (gdb) break main Breakpoint 1 at 0x158b: file test.c, line 2. (gdb) run Starting program: a.out Breakpoint 1, main () at test.c:2 (gdb) cont Debugger finished Note that when I stepped into the program and then continued, the debugger exited when the program being debugged finished. 2) Also ... when stepping through a program, stdout doesn't seem to be displayed. If you notice in the above output, "hello world" was displayed when I ran the program with no breakpoints, but was nowhere to be seen when I stopped in main and then continued. Thanks! Ron Miller rmiller AT synopsys DOT com p.s. The version of GDB that I am using is: GDB 4.16 (go32), Copyright 1996 Free Software Foundation, Inc...