From: Tony Hoyle <tmh@nothing-on.tv>
To: linux-kernel@vger.kernel.org
Subject: just-in-time debugging?
Date: 28 Apr 2001 21:17:10 +0100 [thread overview]
Message-ID: <20010428201708.E629E13F6A@mail.cvsnt.org> (raw)
Is there a way (kernel or userspace... doesn't matter) that gdb/ddd
could be invoked when a program is about
to dump core, or perhaps on a certain signal (that the app could deliver
to itself when required). The latter case
is what I need right now, as I have to debug an app that breaks
seemingly randomly & I need to halt when
certain assertions fail. Core dumps aren't much use as you can't resume
them, otherwise I'd just force a segfault
or something.
I had a look at the do_coredump stuff and it looks like it could be
altered to call gdb in the same way that
modprobe gets called by kmod... however I don't sufficiently know the
code to work out whether it'd work properly
or not.
A patch to glibc would perhaps be better, but I know that code even
less!
Something like responding to SIGTRAP would probably be ideal.
Tony
--
"Two weeks before due date, the programmers work 22 hour days cobbling an
application from... (apparently) one programmer bashing his face into the
keyboard." -- Dilbert
tmh@magenta-netlogic.com http://www.nothing-on.tv
next reply other threads:[~2001-04-28 20:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-28 20:17 Tony Hoyle [this message]
2001-04-28 20:44 ` Davide Libenzi
2001-04-28 21:00 ` Tony Hoyle
2001-04-28 21:06 ` Davide Libenzi
2001-05-01 7:25 ` Sean Hunter
2001-04-28 20:42 Dan Kegel
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=20010428201708.E629E13F6A@mail.cvsnt.org \
--to=tmh@nothing-on.tv \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®