sun386 host/target/native separation
[deliverable/binutils-gdb.git] / gdb / xm-pn.h
index 1cb76026c7b345440a6acc94aa87ef8f6bac844e..71894d81540fab07b63549de744391cc7fd26566 100644 (file)
@@ -22,13 +22,21 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 /* Get rid of any system-imposed stack limit if possible.  */
 #define SET_STACK_LIMIT_HUGE
 
-#define MISSING_VPRINTF
-
 /* 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.023757 seconds and 4 git commands to generate.