aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1993-05-01 09:56:13 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1993-05-01 09:56:13 +0000
commit014221446288e976a20e7079de7c3efbcb7d1559 (patch)
treea162200babc0a4fb3018b6f8593380b37e414be6 /gdb
parentdea149ce8d5261e1198c5cc951174f2b276cc4d9 (diff)
downloadgdb-014221446288e976a20e7079de7c3efbcb7d1559.zip
gdb-014221446288e976a20e7079de7c3efbcb7d1559.tar.gz
gdb-014221446288e976a20e7079de7c3efbcb7d1559.tar.bz2
* 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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/config/mips/tm-irix3.h4
-rw-r--r--gdb/config/mips/tm-mips.h4
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/config/mips/tm-irix3.h b/gdb/config/mips/tm-irix3.h
index a227aa4..ae59a25 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 8dbd951..f3bd9ec 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)