This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] fix debugging code compiled for newer PPC BookE processors
- From: Nathan Froyd <froydnj at codesourcery dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 2 Nov 2010 14:46:13 -0400
- Subject: Re: [PATCH] fix debugging code compiled for newer PPC BookE processors
- References: <1288380041-22165-1-git-send-email-froydnj@codesourcery.com> <20101102182326.GD2492@adacore.com>
On Tue, Nov 02, 2010 at 11:23:26AM -0700, Joel Brobecker wrote:
> > + /* The type must be 2. */
> > + if (type != 2)
> > + break;
>
> So, the type must always be 2 and I am to understand that if type is not
> 2, then the data is screwed, hence the early exit? What's the purpose of
> that field, if it is always the same value?
I don't know exactly what the purpose is. The E500 ABI User's Guide
says simply:
For the .PPC.EMB.apuinfo section, the name shall be âAPUinfo\0â, the
type shall be 2 (as type 1 is already reserved for ELF_NOTE_ABI), and
the data shall contain a series of words containing APU information,
one per word. The APU information contains two unsigned halfwords: the
upper half contains the unique APU identiïer, and the lower half
contains the revision of that APU.
So, there's the rationale.
-Nathan