This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PowerPC 603 Register Set Clarification


On Wed, Oct 26, 2005 at 10:58:56PM -0400, Ron McCall wrote:
> Hi,
> 
> I am unsure as to how to handle the ASR register and the two placeholder
> registers that are defined for the PowerPC 603 with respect to the 'g'
> and 'G' packets and was hoping someone could clarify it for me.  I am
> currently working with GDB 6.3.50.20051026.
> 
> In rs6000-tdep.c, PPC_OEA_SPRS includes the ASR register which is
> declared S64 (a 64-bit register on 64-bit systems that doesn't exist on
> 32-bit systems).  The 603 isn't 64-bit but the register still appears to
> take up a register number nonetheless.  Does it also take up space (16
> hex chars) in the 'G' packet, which is then intended to be skipped by
> the stub?  If so, should the stub then fill in zeroes for this register
> in the 'g' packet?

The best way to answer this question is to configure GDB appropriately
to talk to a 603 target, and then run "maint info registers".  That
will tell you the expected offsets of every register.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]