* tm-{irix3,mips,nindy960,pn,symmetry,vx960}.h: Move
[deliverable/binutils-gdb.git] / gdb / xm-pn.h
index 1cb76026c7b345440a6acc94aa87ef8f6bac844e..d180b6e6c657849b133048d407a8038cdaa8139f 100644 (file)
@@ -26,9 +26,19 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 /* Address of U in kernel space */
 #define        KERNEL_U_ADDR           0x3fc000
+
+/* This is a piece of magic that is given a register number REGNO
+   and as BLOCKEND the address in the system of the end of the user structure
+   and stores in ADDR the address in the kernel or core dump
+   of that register. */
+#define REGISTER_U_ADDR(addr, blockend, regno) {                       \
+       addr = blockend + regno * 4;                                    \
+       if (regno == PC_REGNUM) addr = blockend - 8 * 4;                \
+       if (regno == PS_REGNUM) addr = blockend - 7 * 4;                \
+       if (regno == SP_REGNUM) addr = blockend - 6 * 4;                \
+}
 \f
-/*
- * No KDB support, Yet! */
+/* No KDB support, Yet! */
 /* Interface definitions for kernel debugger KDB.  */
 
 /* Map machine fault codes into signal numbers.
This page took 0.023786 seconds and 4 git commands to generate.