From a2585ce7357e9a2d880543bfbfc09e44f5c17141 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sat, 28 Jul 2001 19:30:41 +0000 Subject: * config/i386/tm-i386.h (STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): New defines. (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): New prototypes. * config/i386/tm-fbsd.h, config/i386/tm-i386gnu.h, config/i386/tm-linux.h (STAB_REG_TO_REGNUM): Redefine to call i386_dwarf_reg_to_regnum. * i386-tdep.c (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): New functions. --- gdb/config/i386/tm-i386.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'gdb/config/i386/tm-i386.h') diff --git a/gdb/config/i386/tm-i386.h b/gdb/config/i386/tm-i386.h index 9248f18..5f2386c 100644 --- a/gdb/config/i386/tm-i386.h +++ b/gdb/config/i386/tm-i386.h @@ -195,6 +195,22 @@ extern CORE_ADDR i386_saved_pc_after_call (struct frame_info *frame); #define FPU_REG_RAW_SIZE (10) +/* Use the "default" register numbering scheme for stabs and COFF. */ + +#define STAB_REG_TO_REGNUM(reg) i386_stab_reg_to_regnum ((reg)) +#define SDB_REG_TO_REGNUM(reg) i386_stab_reg_to_regnum ((reg)) +extern int i386_stab_reg_to_regnum (int reg); + +/* Use the DWARF register numbering scheme for DWARF and DWARF 2. */ + +#define DWARF_REG_TO_REGNUM(reg) i386_dwarf_reg_to_regnum ((reg)) +#define DWARF2_REG_TO_REGNUM(reg) i386_dwarf_reg_to_regnum ((reg)) +extern int i386_dwarf_reg_to_regnum (int reg); + +/* We don't define ECOFF_REG_TO_REGNUM, since ECOFF doesn't seem to be + in use on any of the supported i386 targets. */ + + /* Sizes of individual register sets. These cover the entire register file, so summing up the sizes of those portions actually present yields REGISTER_BYTES. */ -- cgit v1.1