This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Replace x86 register macros
On Tue, Feb 19, 2008 at 04:44:37PM +0100, Ulrich Weigand wrote:
> I'd suggest to keep the I387_..._REGNUM macros, but add a tdep
> parameter to them. All users would need to be changed to pass
> in the proper tdep, but that only makes the existing dependency
> explicit.
Alternatively, use fixed numbers for all of these registers and
use nameless int0_t registers for any missing from the current gdbarch
Then only the register name and type depend on the tdep, not the
register number.
--
Daniel Jacobowitz
CodeSourcery