From: phi <phi@hpfrcu81.france.hp.com>
To: Robin Rowe <rower@MovieEditor.com>
Cc: gdb@sources.redhat.com
Subject: Re: Just-in-time debugging on Linux
Date: Sun, 09 Jun 2002 02:36:00 -0000 [thread overview]
Message-ID: <3D0321A5.90FC7EDC@hpfrcu81.france.hp.com> (raw)
In-Reply-To: <001a01c20f93$bd784460$0301a8c0@rowboat>
Robin Rowe wrote:
>
> Michael,
>
> > signal(SIGSEGV, crash_handler); /* This is the most common crash */
>
> This is an interesting approach, but I want to trap unmodified programs.
>
Then wrap them up in a script
rename prog xyz into xyz.ori this doesn't modify the prog?
then implement the script xyz that does
xyz::
#! your shell
gdb xyz.ori $@
and have you gdbinit (or other ways) to catch the signal you want.
At xyz invocation we start gdb wich start xyz.ori wich will catch the signal
and let you see.
==================
If you really don't want to rename xyz.ori then have the script xyz earlier in
your PATH and make the script invoke the xyz from its original path
Phi
next prev parent reply other threads:[~2002-06-09 9:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-09 1:30 # " Michael Veksler
2002-06-09 1:57 ` Robin Rowe
2002-06-09 2:36 ` phi [this message]
2002-06-10 9:25 ` Tom Tromey
-- strict thread matches above, loose matches on Subject: below --
2002-06-07 17:24 Just-in-time debugging Robin Rowe
2002-06-08 10:26 ` Christopher Faylor
2002-06-08 23:17 ` Just-in-time debugging on Linux Robin Rowe
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=3D0321A5.90FC7EDC@hpfrcu81.france.hp.com \
--to=phi@hpfrcu81.france.hp.com \
--cc=gdb@sources.redhat.com \
--cc=rower@MovieEditor.com \
/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