diff options
Diffstat (limited to 'gdb/xm-mips.h')
-rw-r--r-- | gdb/xm-mips.h | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/gdb/xm-mips.h b/gdb/xm-mips.h index 4b5eb5f..ff2bebf 100644 --- a/gdb/xm-mips.h +++ b/gdb/xm-mips.h @@ -27,28 +27,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define SET_STACK_LIMIT_HUGE -/* This WOULD BE the amount to subtract from u.u_ar0 - to get the offset in the core file of the register values. - But Mips' ptrace works on regnums, not displacements. So since - REGISTER_U_ADDR is called for both core files and ptrace, use - BLOCKEND as a flag: 0 for core files, 1 for ptrace. What a - kludge. */ +#define KERNEL_U_ADDR 0 /* Not needed. */ -#define KERNEL_U_ADDR (int)reg_ptr /* Magic, causes a zero blockend */ +/* Only used for core files on DECstations. */ #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; + else addr = 0; /* ..somewhere in the pcb */ /* Override copies of {fetch,store}_inferior_registers in infptrace.c. */ #define FETCH_INFERIOR_REGISTERS |