Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Devrim Erdem <devrim.erdem@gmail.com>
To: gdb@sources.redhat.com
Subject: Attaching and inspecting crash with gdb
Date: Mon, 01 Nov 2004 11:04:00 -0000	[thread overview]
Message-ID: <ba9d84630411010303944c237@mail.gmail.com> (raw)

Hello,

Classic problem. Customer uses software heavily. Software crashes from
time to time. No core dumps.

Is there a way of attaching and application and ask gdb to write a
core dump ( or any kind of dump of data ) which I could later load in
gdb to debug the problem remotely.

If this is not possible, I will need to implement my current solution.

The current not so elegant way:
=============================
In my crash crash handler, I simply run a small python script which
attaches gdb to the currently crashed application.

So far I can use the command line argument "--command" to specify
commands like printing the current stack trace. But I need more
information about the crash such as the value of data at the point of
crash.

I would like to be able to tell gdb to do:

For each thread
    For each frame ( n to 0 )
       print values of all data of the current frame

Then the user sends this text to me and then I can try to figure out
the problem.

But at the moment I can not tell gdb to do a "for" loop for threads
and frames. Is this possible or is there another way of getting the
same kind of information.

Thanks in advance,

Devrim.


             reply	other threads:[~2004-11-01 11:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-01 11:04 Devrim Erdem [this message]
2004-11-01 11:34 ` Marco Molteni
2004-11-01 14:07   ` Daniel Jacobowitz
2004-11-01 14:26     ` Devrim Erdem
2004-11-01 21:20 ` Eli Zaretskii
     [not found]   ` <ba9d846304110206473dfc3a5@mail.gmail.com>
2004-11-02 19:21     ` Eli Zaretskii

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=ba9d84630411010303944c237@mail.gmail.com \
    --to=devrim.erdem@gmail.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