This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: PowerPC 603 Register Set Clarification
On Thu, Oct 27, 2005 at 11:30:13AM -0700, Ron McCall wrote:
>
>
> --- Daniel Jacobowitz <drow@false.org> wrote:
> > 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.
>
> There isn't a registers subcommand under maintenance
> info but there is a maintenance print raw-registers
> command that looks like it gives the desired
> information. It says that ASR and the two placeholder
> registers have a size of zero. So, that would imply
> that both the 'G' and 'g' packets would just omit them
> all. However, I do see GDB trying to read these three
> registers via the 'p' packet. In that case, should a
> stub reply with an error or an empty response? It
> doesn't seem possible to returns zeroes since there is
> no size associated with these registers.
Sorry, I maint maint print registers. raw-reg will work just as well.
I'm not sure (re the P packet). An empty response won't work. But 00
should work well enough, or else use 'x'.
--
Daniel Jacobowitz
CodeSourcery, LLC