From: "Ramana Radhakrishnan" <ramana.radhakrishnan@codito.com>
To: alexjb@transitive.com
Cc: gdb@sources.redhat.com
Subject: Re: Fully automating GDB (aka how to make canned command strings see the exit status)
Date: Thu, 16 Mar 2006 18:54:00 -0000 [thread overview]
Message-ID: <1106.61.2.59.70.1142529948.squirrel@webmail.codito.com> (raw)
In-Reply-To: <1142529081.5372.14.camel@okra.transitives.com>
Hi,
Look at gdb scripts anyways. You could associate commands with
breakpoints. Quit on hitting a breakpoint on exit ?
break exit
commands
quit
Simple :
Have an external script that loops on this. In case the program hits a
SEGV gdb will get it and you have the context , else gdb exits.
Look at the while construct in gdb , maybe you can use that in case you
can't associate commands for breakpoints from scripts.
HTH
cheers
Ramana
> Hi,
>
> I've got a program I'm trying to debug that crashes on a very
> intermittent basis. I suspect the core dumps I'm getting are incomplete
> so I would like to try and catch the the crash live in gdb.
>
> I figure a canned script to run the program is the answer. However how
> do I tell if the program has exited successfully (in which case I can
> run again) to hitting the SEG and staying put for when I come back in
> the morning?
>
>
> --
> Alex, homepage: http://www.bennee.com/~alex/
> TV is chewing gum for the eyes. -- Frank Lloyd Wright
>
----
Ramana Radhakrishnan
GNU Tools
Codito Technologies
prev parent reply other threads:[~2006-03-16 17:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-16 17:18 Alex Bennee
2006-03-16 17:25 ` Daniel Jacobowitz
2006-03-16 23:09 ` Andrew STUBBS
2006-03-16 17:31 ` Larry Martell
2006-03-16 18:54 ` Ramana Radhakrishnan [this message]
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=1106.61.2.59.70.1142529948.squirrel@webmail.codito.com \
--to=ramana.radhakrishnan@codito.com \
--cc=alexjb@transitive.com \
--cc=gdb@sources.redhat.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