This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Patch to provide m68k simulator to gdb
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: Patch to provide m68k simulator to gdb
- From: Will Cohen <wcohen at redhat dot com>
- Date: Tue, 06 Mar 2001 11:21:16 -0500
- CC: gdb-patches at sources dot redhat dot com
- Organization: Red Hat, Inc.
- References: <3A9C3128.A52307A@redhat.com> <3A9D2941.ECA95C7E@cygnus.com> <3AA40408.1A30B245@redhat.com> <3AA41929.7AD57C98@cygnus.com>
Andrew Cagney wrote:
>
> Will Cohen wrote:
> >
> > I have revised the code to avoid hard coded constants for the register
> > numbers. The register numbers are defined in sim-main.h.
>
> Just FYI,
>
> If these are the register numbers being passed in via
> sim_{fetch,store}_register() then they should be defined
> include/sim-m68k.h.
>
> Andrew
If that's the way to do it okay. I only saw include/sim-d10v.h there.
None of the other simulators followed this approach. I was emulating
what I saw in the vast majority of the simulators.
-Will