This is the mail archive of the
mailing list for the GDB project.
Re: elf core file format for powerpc
- From: rahul dev <rahul_dev_agg at yahoo dot co dot in>
- To: gdb at sourceware dot org
- Date: Wed, 6 Feb 2008 01:14:23 +0530 (IST)
- Subject: Re: elf core file format for powerpc
- Reply-to: rahul_dev_agg at yahoo dot co dot in
--- On Wed, 6/2/08, Jim Blandy <firstname.lastname@example.org> wrote:
> From: Jim Blandy <email@example.com>
> Subject: Re: elf core file format for powerpc
> To: firstname.lastname@example.org
> Cc: email@example.com
> Date: Wednesday, 6 February, 2008, 1:01 AM
> On Feb 5, 2008 5:42 AM, rahul dev
> <firstname.lastname@example.org> wrote:
> > Can you please provide some information on the note
> section and how to
> > add register values in the note section. I searched a
> lot on the net
> > but failed to get any useful information.
> One source of confusion is that the code in GDB that
> operates on BFD
> sections is actually accessing ELF notes, in a PT_NOTE
> program header.
> When BFD opens a core file and sees a PT_NOTE program
> header, it
> turns each note into a "section" with a known
> name. See
> bfd/elfcore.h:elf_core_file_p, and uses of
> So if you want to produce .reg "sections" that
> GDB can see, you need
> to produce PT_NOTE program headers in your core that BFD
Thanks Jim. I can read the registers from the core file now.
Also, readelf was really useful, specially the -n option.
Get the freedom to save as many mails as you wish. To know how, go to http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html