aboutsummaryrefslogtreecommitdiff
path: root/gdb/xm-mips.h
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-10-12 07:11:48 +0000
committerJohn Gilmore <gnu@cygnus>1991-10-12 07:11:48 +0000
commitdf6335e19f0b678f5c3842cb91e1373b1f27eafc (patch)
tree717720a5cbf7a85b2c11156a1b6a2d9565070b45 /gdb/xm-mips.h
parent96eb46258b717266ddef1f850be124c6925a8a3f (diff)
downloadgdb-df6335e19f0b678f5c3842cb91e1373b1f27eafc.zip
gdb-df6335e19f0b678f5c3842cb91e1373b1f27eafc.tar.gz
gdb-df6335e19f0b678f5c3842cb91e1373b1f27eafc.tar.bz2
* tm-{irix3,mips,nindy960,pn,symmetry,vx960}.h: Move
REGISTER_U_ADDR to corresponding xm- file. Sugg. by Peter Schauer.
Diffstat (limited to 'gdb/xm-mips.h')
-rw-r--r--gdb/xm-mips.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/xm-mips.h b/gdb/xm-mips.h
index caebda5..29d523e 100644
--- a/gdb/xm-mips.h
+++ b/gdb/xm-mips.h
@@ -36,6 +36,20 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define KERNEL_U_ADDR (int)u.u_ar0
+#define REGISTER_U_ADDR(addr, blockend, regno) \
+ if (blockend == 0) { \
+ if (regno < 38) addr = (NBPG*UPAGES) + (regno - 38)*sizeof(int);\
+ else addr = 0; /* ..somewhere in the pcb */ \
+ } else if (regno < 32) addr = regno; \
+ else if (regno == PC_REGNUM) addr = 96; \
+ else if (regno == 36) addr = 97; \
+ else if (regno == HI_REGNUM) addr = 98; \
+ else if (regno == LO_REGNUM) addr = 99; \
+ else if (regno == FCRCS_REGNUM) addr = 100; \
+ else if (regno == FCRIR_REGNUM) addr = 101; \
+ else if (regno >= FP0_REGNUM) addr = regno - (FP0_REGNUM-32);\
+ else addr = 0;
+
/* Override copies of {fetch,store}_inferior_registers in infptrace.c. */
#define FETCH_INFERIOR_REGISTERS