diff options
author | Mark Kettenis <kettenis@gnu.org> | 2001-07-28 19:30:41 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2001-07-28 19:30:41 +0000 |
commit | a2585ce7357e9a2d880543bfbfc09e44f5c17141 (patch) | |
tree | daff96be8db7d0160d45ba5a09051e23e877d45e /gdb/config/i386/tm-i386.h | |
parent | 13283e2df1a415094e74f3061d556af0b561514a (diff) | |
download | gdb-a2585ce7357e9a2d880543bfbfc09e44f5c17141.zip gdb-a2585ce7357e9a2d880543bfbfc09e44f5c17141.tar.gz gdb-a2585ce7357e9a2d880543bfbfc09e44f5c17141.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/config/i386/tm-i386.h')
-rw-r--r-- | gdb/config/i386/tm-i386.h | 16 |
1 files changed, 16 insertions, 0 deletions
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. */ |