Mail Archives: djgpp/1998/11/21/20:25:10
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...
- Raw text -