Date: Sat, 25 Nov 2000 09:53:25 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: Andrea Ryan Message-Id: <9003-Sat25Nov2000095324+0200-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6 CC: djgpp AT delorie DOT com In-reply-to: <3A1EF3FD.EB836133@global2000.net> (message from Andrea Ryan on Fri, 24 Nov 2000 23:24:54 GMT) Subject: Re: GDB References: <3A1EF3FD DOT EB836133 AT global2000 DOT net> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: Andrea Ryan > 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.