This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: newbie gdb help...
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: christopher j bottaro <cjb at cs dot utexas dot edu>
- Cc: gdb at sources dot redhat dot com
- Date: Wed, 5 Feb 2003 15:45:05 -0500
- Subject: Re: newbie gdb help...
- References: <200302051438.10934.cjb@cs.utexas.edu>
On Wed, Feb 05, 2003 at 02:38:10PM -0600, christopher j bottaro wrote:
> hello,
> i just started using gdb yesterday. i've read a lot of the manual and to my
> suprise, gdb is pretty easy to use. i got pretty comfortable navagating thru
> the stack, the source, setting break and watch points, etc...
>
> anyways, i have 2 questions that i couldn't find in the documentation:
>
> 1) command to show you what line is about to be executed. sometimes after
> many print commands, and many list commands, i lose track of where i am in
> the program's execution.
Try "f", for "frame". It should show the current line.
> 2) when i resume execution of my program with the continue command, is there
> anyway to break it again from within gdb? while the program is running
> (after issuing the continue command), gdb seems to ignore any input i try to
> tell it.
If you hit Control-C, GDB should stop the program.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer