Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* elf core file format for powerpc
@ 2008-02-05 13:07 rahul dev
  2008-02-05 13:19 ` Daniel Jacobowitz
  0 siblings, 1 reply; 8+ messages in thread
From: rahul dev @ 2008-02-05 13:07 UTC (permalink / raw)
  To: gdb

Guys,

 

    I am working on embedded system (powerpc based). I try to collect the memory dump over the UART and save it to file.

Next, I convert this raw data to the core file and try to analyse the contents of various global variables. gdb shows perfect results for all the variables in .data and .bss sections.

However, I do not know how to see the values of various general purpose registers and stack dump.

I generally get the following message:

warning: Couldn't find general-purpose registers in core file

It looks that the gdb try to find the ".reg" section in the core file, but it couldn't find it. I tried adding a .reg section with the register contents, still I get the same error message.

Is there ant utility by which I can add a ".reg" section to the corefile.

Also, is anyone aware of any link that describes the core file format (elf, linux over powerpc) ?  I particulary need information about "note0, .reg, .reg2" sections.

Also, is the code for "gcore" available on the internet. I need the source code for "gcore" that creates a core file in elf format and also adds sections "note0, .reg, .reg2".
 

I would be highly grateful for any help/pointers.

thanks a lot...... 



      Forgot the famous last words? Access your message archive online at http://in.messenger.yahoo.com/webmessengerpromo.php


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

end of thread, other threads:[~2008-02-05 19:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-05 13:07 elf core file format for powerpc rahul dev
2008-02-05 13:19 ` Daniel Jacobowitz
2008-02-05 13:26   ` rahul dev
2008-02-05 13:31     ` Daniel Jacobowitz
2008-02-05 13:43       ` rahul dev
2008-02-05 19:32         ` Jim Blandy
2008-02-05 19:37           ` Jim Blandy
2008-02-05 19:45           ` rahul dev

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