Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Backtracing broken core dumps
@ 2009-07-19 16:03 Catherine Smith
  2009-07-19 16:11 ` Andreas Schwab
  2009-07-20 12:06 ` Daniel Jacobowitz
  0 siblings, 2 replies; 7+ messages in thread
From: Catherine Smith @ 2009-07-19 16:03 UTC (permalink / raw)
  To: gdb

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




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-07-20 19:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-19 16:03 Backtracing broken core dumps Catherine Smith
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox