This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Is this the right list...
- From: Joel Brobecker <brobecker at adacore dot com>
- To: aladdin <aladdin at csunv dot com>
- Cc: gdb at sourceware dot org
- Date: Thu, 3 May 2007 18:40:35 -0700
- Subject: Re: Is this the right list...
- References: <200705032136.32942.aladdin@csunv.com>
[yes, you can send questions about using GDB to this]
> When a program goes off into a daemon, or an endless loop or whatever, how do
> you get gdb attention (i. e., get a prompt so you can stop/check/abort the
> program)?
If GDB is still attached to your program, hitting control-c should
interrupt your program and allow you to see where it is. Otherwise,
your other option, if you are not attach, then just get the pid of
your program, and attach GDB to it using "attach <pid>".
The GDB documentation should provide you more details about this.
(my very first lesson at engineering school was RTFM :-)
--
Joel