summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/gdb/config/mips/nm-irix5.h
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/binutils/gdb/config/mips/nm-irix5.h')
-rw-r--r--gnu/usr.bin/binutils/gdb/config/mips/nm-irix5.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/gdb/config/mips/nm-irix5.h b/gnu/usr.bin/binutils/gdb/config/mips/nm-irix5.h
index 6bdab300b19..33a8a8ce924 100644
--- a/gnu/usr.bin/binutils/gdb/config/mips/nm-irix5.h
+++ b/gnu/usr.bin/binutils/gdb/config/mips/nm-irix5.h
@@ -45,3 +45,10 @@ extern int procfs_stopped_by_watchpoint (ptid_t);
extern int procfs_set_watchpoint (ptid_t, CORE_ADDR, int, int, int);
#define TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT(SIZE) 1
+
+/* Override register locations in upage for SGI machines */
+#define REGISTER_U_ADDR(addr, blockend, regno) \
+ if (regno < PC_REGNUM) \
+ addr = regno; \
+ else \
+ addr = regno + NSIG_HNDLRS; /* Skip over signal handlers */