From: Andrew Cagney <ac131313@cygnus.com>
To: Will Cohen <wcohen@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: Patch to provide m68k simulator to gdb
Date: Thu, 01 Mar 2001 11:54:00 -0000 [thread overview]
Message-ID: <3A9EA833.9EDC4407@cygnus.com> (raw)
In-Reply-To: <3A9EA1B9.471A7BE9@redhat.com>
Will Cohen wrote:
>
> There are a number of changes between the old interfaces used by m68k
> (and sh) and the newer simulators. Using nrun.c requires a number of
> other things to be modified. Is there there some documentation that
> describes the various defines and functions required by this newer
> interface? Or is the situation "The code IS the documentation"? If
> "The code IS the documentation," which simulator is the best one to
> model the changes after?
>
> I would like to remove these hard-coded numbers in the
> sim_fetch_registers and sim_store_register functions. Where should
> REGISTER_SIM_REGNO be defined. I couldn't find an example of its
> definition in the version of gdb I am using.
Unfortunatly, ``the code IS the documentation''. The mn10300 may be
best although others probably have better suggestions.
REGISTER_SIM_REGNO would be defined as part of gdb/config/m68k/tm-m68k.h
and friends. It would map onto a function. To decide if you need
REGISTER_SIM_REGNO, check the gdb/config/m68k/tm-*.h to see if there is
more than one defintion of REGISTER_BYTE and/or register numbering.
Hmm, looks like it only appears in tm-m68k.h (correct?).
I would lay out include/sim-m68k.h to match the register numbering
implied by tm-m68k.h:REGISTER_BYTE(REGNUM). If an m68k target ever
re-orders its registers then that target can implement
REGISTER_SIM_REGNO to map that numbering onto the standard. Hopefully
no one will do that but if they do the sim side is ready.
Andrew
next prev parent reply other threads:[~2001-03-01 11:54 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-27 14:59 Will Cohen
2001-02-27 15:35 ` J.T. Conklin
2001-02-28 8:02 ` Andrew Cagney
2001-02-28 8:58 ` Will Cohen
2001-02-28 9:17 ` Andrew Cagney
2001-03-05 13:12 ` Will Cohen
2001-02-28 8:39 ` Andrew Cagney
2001-02-28 9:01 ` Will Cohen
2001-03-01 11:24 ` Will Cohen
2001-03-01 11:54 ` Andrew Cagney [this message]
2001-03-05 13:25 ` Will Cohen
2001-03-05 14:57 ` Andrew Cagney
2001-03-06 8:22 ` Will Cohen
2001-03-06 10:07 ` Frank Ch. Eigler
2001-03-09 12:54 ` Andrew Cagney
2001-03-05 15:12 ` Andrew Cagney
2001-03-06 10:11 ` Frank Ch. Eigler
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=3A9EA833.9EDC4407@cygnus.com \
--to=ac131313@cygnus.com \
--cc=gdb-patches@sources.redhat.com \
--cc=wcohen@redhat.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