Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* MIPS CPU register order
@ 2001-06-22 10:54 Sumit Garg
  2001-06-22 12:15 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Sumit Garg @ 2001-06-22 10:54 UTC (permalink / raw)
  To: gdb

Hi All,
I am working on enhancing the GDB, to process our properietory core files.
Currently I am dumping the registers in the .reg segment in the following
order.
    sr, pc, lo, hi, gpreg[32], cause, fpcsr.

However, I am not sure if this is the order in which the function
read_registers(), would expect the registers to be. Can somebody pls give me
pointers to where the GDB register order for mips processors is stored.

Thanks
Sumit


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

* Re: MIPS CPU register order
  2001-06-22 10:54 MIPS CPU register order Sumit Garg
@ 2001-06-22 12:15 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2001-06-22 12:15 UTC (permalink / raw)
  To: Sumit Garg; +Cc: gdb

On Fri, Jun 22, 2001 at 10:54:24AM -0700, Sumit Garg wrote:
> Hi All,
> I am working on enhancing the GDB, to process our properietory core files.
> Currently I am dumping the registers in the .reg segment in the following
> order.
>     sr, pc, lo, hi, gpreg[32], cause, fpcsr.
> 
> However, I am not sure if this is the order in which the function
> read_registers(), would expect the registers to be. Can somebody pls give me
> pointers to where the GDB register order for mips processors is stored.

[warning: non multi-arch aware answer]

The order in the core file can be whatever you want.  In your target
nat file, you'll have functions supply_gregset and supply_fpregset,
which transform the registers into the form GDB expects.  Usually,
you'll want to make the order in the core file match gregset_t and
fpregset_t, since that's what core-regset.c expects.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


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

end of thread, other threads:[~2001-06-22 12:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-22 10:54 MIPS CPU register order Sumit Garg
2001-06-22 12:15 ` Daniel Jacobowitz

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