Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Catherine Smith" <Catherine.Smith@arrows.demon.co.uk>
To: <gdb@sourceware.org>
Subject: Backtracing broken core dumps
Date: Sun, 19 Jul 2009 16:03:00 -0000	[thread overview]
Message-ID: <8889C7D9C664436F8F547CB15F53C01C@Catherine> (raw)

I have attempted to find back traces of several core dumps
which have resulted from executing damaged pointers to
functions, or null pointers to functions.
Sometimes a gdb command of the form

   set pc=$lr

would help, except that gdb says

  (gdb) set pc=$lr
  You can't do that without a process to debug

I have to resort to careful editting of the core file with a binary editor.
This works, is useful, but isn't very friendly.

Similarly today I had a crash in an Arm assembler memcpy() .
Careful unwinding the stack by hand and editting the core dump
allowed a stack trace to be extracted.

Is there a gdb command which allows this sort of change?
If not, could one be created?

Thanks,
John Smith




             reply	other threads:[~2009-07-19 16:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-19 16:03 Catherine Smith [this message]
2009-07-19 16:11 ` Andreas Schwab
2009-07-20  1:47   ` Thiago Jung Bauermann
2009-07-20 19:26     ` Samuel Bronson
2009-07-20 19:53       ` Ulrich Weigand
2009-07-20 16:18   ` Paul Koning
2009-07-20 12:06 ` Daniel Jacobowitz

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=8889C7D9C664436F8F547CB15F53C01C@Catherine \
    --to=catherine.smith@arrows.demon.co.uk \
    --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