From: Peter Schauer Date: Sat, 1 May 1993 09:56:13 +0000 (+0000) Subject: * config/mips/tm-mips.h (STABS_REG_TO_REGNUM): Match it with the gcc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=014221446288e976a20e7079de7c3efbcb7d1559;p=binutils-gdb.git * config/mips/tm-mips.h (STABS_REG_TO_REGNUM): Match it with the gcc definition. * config/mips/tm-irix3.h (STABS_REG_TO_REGNUM): Add. --- diff --git a/gdb/config/mips/tm-irix3.h b/gdb/config/mips/tm-irix3.h index a227aa474b2..ae59a25dbec 100644 --- a/gdb/config/mips/tm-irix3.h +++ b/gdb/config/mips/tm-irix3.h @@ -315,3 +315,7 @@ typedef struct mips_extra_func_info { mips_extra_func_info_t's off of this. */ #define MIPS_EFI_SYMBOL_NAME "__GDB_EFI_INFO__" + +/* Convert a dbx stab register number (from `r' declaration) to a gdb REGNUM */ + +#define STAB_REG_TO_REGNUM(num) ((num) < 32 ? (num) : (num)+FP0_REGNUM-38) diff --git a/gdb/config/mips/tm-mips.h b/gdb/config/mips/tm-mips.h index 8dbd951ac6c..f3bd9ec49f4 100644 --- a/gdb/config/mips/tm-mips.h +++ b/gdb/config/mips/tm-mips.h @@ -377,4 +377,6 @@ typedef struct mips_extra_func_info { and equivalence between CORE_ADDR and FRAME_ADDR. */ extern struct frame_info *setup_arbitrary_frame PARAMS ((int, CORE_ADDR *)); -#define STAB_REG_TO_REGNUM(num) ((num) < 32 ? (num) : (num)+FP0_REGNUM-32) +/* Convert a dbx stab register number (from `r' declaration) to a gdb REGNUM */ + +#define STAB_REG_TO_REGNUM(num) ((num) < 32 ? (num) : (num)+FP0_REGNUM-38)