Mail Archives: djgpp/2000/11/25/02:57:23
> From: Andrea Ryan <aryan AT global2000 DOT net>
> Newsgroups: comp.os.msdos.djgpp
> Date: Fri, 24 Nov 2000 23:24:54 GMT
>
> Where can I find information on how to use the DOS port of gdb?
GDB comes with a manual in the form of an Info file. Type "info gdb"
from the command line, and read there.
> I have typed help and gotten information on the commands, but I need
> to find what order they need to be typed in.
One of the first chapters of the GDB manual is "Sample Session". It
takes you step by step through a debugging session and shows how the
most popular commands are used.
> For example, I tried to use nexti but the program needs to be run.
> When I try to run it, and use nexti, the program exits without
> stopping.
You need to set a breakpoint at the entry to the function where you
want to step, by typing "br my_buggy_function" at the GDB prompt,
before issuing the "run" command. Then GDB will let the program run
until it enters the named function, and you can then step through it.
- Raw text -