This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: [RFC] Register sets
Date: Thu, 4 Sep 2003 11:13:39 -0400
From: Daniel Jacobowitz <drow@mvista.com>
> >>As for the architecture, supply_regset needs this. It might, for
> >>instance, be an x86-64 method supplying registers to an i386 register
> >>cache.
> >
> >
> >It needs the regcache's architecture, but I don't believe it needs any
> >other. The method will be defined for a particular regcache layout,
> >which incorporates all of the information it needs about the other
> >involved architecture. We could get the regcache's architecture from
> >the regcache, or pass it explicitly.
>
> That's the architecture mark was passing in. The alternative is a
> larger table of regcache X regset maps.
No, Mark was passing in the core's architecture != the regcache's
architecture.
Indeed I was, and it's the wrong thing to do.
Mark