This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch to provide m68k simulator to gdb


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]