From: "Jude Moersdorf" <Jude.Moersdorf@pt.com>
To: "aladdin" <aladdin@csunv.com>, <gdb@sourceware.org>
Subject: RE: Is this the right list...
Date: Fri, 04 May 2007 15:42:00 -0000 [thread overview]
Message-ID: <0F6E41788631664DBE8DF13D06298FE194B7@sloexchange01.corp.pt.com> (raw)
From the command line try sending a SIGSTOP to the process. 'kill
-SIGSTOP <pid>'
-----Original Message-----
From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On
Behalf Of aladdin
Sent: Thursday, May 03, 2007 7:04 PM
To: gdb@sourceware.org
Subject: Re: Is this the right list...
Actually, I did (always do) RTFM before posting. I've found that to be
less
hassle than subscribing to a list, but realize I may be in the minority
with
that opinion;-).
gdb is still attached to the program. The program forks itself twice
turning
itself into a daemon, and gdb is set to follow the child fork. It seems
to
do this fine. Obviously, I would normally have set breakpoints to
capture
it, but forgot to do so in one case, and figured there must be a way to
get
gdb's attention again.
Neither ctl-c nor kill worked; I had to "kill -9" it. I don't
understand
that; the only signal the user program is catching is SIGALRM (14?).
On Thursday 03 May 2007 21:40, Joel Brobecker wrote:
> [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 :-)
next reply other threads:[~2007-05-04 15:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-04 15:42 Jude Moersdorf [this message]
2007-05-05 15:00 ` aladdin
-- strict thread matches above, loose matches on Subject: below --
2007-05-04 1:36 aladdin
2007-05-04 1:40 ` Joel Brobecker
2007-05-04 2:04 ` aladdin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0F6E41788631664DBE8DF13D06298FE194B7@sloexchange01.corp.pt.com \
--to=jude.moersdorf@pt.com \
--cc=aladdin@csunv.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox