From: Daniel Jacobowitz <dmj+@andrew.cmu.edu>
To: Sumit Garg <sgarg@apertonet.com>
Cc: gdb@sources.redhat.com
Subject: Re: MIPS CPU register order
Date: Fri, 22 Jun 2001 12:15:00 -0000 [thread overview]
Message-ID: <20010622121451.A19217@nevyn.them.org> (raw)
In-Reply-To: <9AAAF61573C83B4CB623DE3EEA4F9DBC20BD8E@nebula.apertonet.com>
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
prev parent reply other threads:[~2001-06-22 12:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-22 10:54 Sumit Garg
2001-06-22 12:15 ` Daniel Jacobowitz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010622121451.A19217@nevyn.them.org \
--to=dmj+@andrew.cmu.edu \
--cc=gdb@sources.redhat.com \
--cc=sgarg@apertonet.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox