* config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
[deliverable/binutils-gdb.git] / gdb / config / mips / nm-riscos.h
CommitLineData
c906108c 1/* This program is free software; you can redistribute it and/or modify
c5aa993b
JM
2 it under the terms of the GNU General Public License as published by
3 the Free Software Foundation; either version 2 of the License, or
4 (at your option) any later version.
c906108c 5
c5aa993b
JM
6 This program is distributed in the hope that it will be useful,
7 but WITHOUT ANY WARRANTY; without even the implied warranty of
8 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 GNU General Public License for more details.
c906108c 10
c5aa993b
JM
11 You should have received a copy of the GNU General Public License
12 along with this program; if not, write to the Free Software
13 Foundation, Inc., 59 Temple Place - Suite 330,
14 Boston, MA 02111-1307, USA. */
c906108c
SS
15
16/* MIPS running RISC/os 4.52C. */
17
18#define PCB_OFFSET(FIELD) ((int)&((struct user*)0)->u_pcb.FIELD)
19
20/* RISC/os 5.0 defines this in machparam.h. */
21#include <bsd43/machine/machparam.h>
22#define NBPG BSD43_NBPG
23#define UPAGES BSD43_UPAGES
24
25/* Where is this used? I don't see any uses in mips-nat.c, and I don't think
26 the uses in infptrace.c are used if FETCH_INFERIOR_REGISTERS is defined.
27 Does the compiler react badly to "extern CORE_ADDR kernel_u_addr" (even
28 if never referenced)? */
29#define KERNEL_U_ADDR BSD43_UADDR
30
31#define REGISTER_U_ADDR(addr, blockend, regno) \
32 if (regno < FP0_REGNUM) \
33 addr = UPAGES*NBPG-EF_SIZE+4*((regno)+EF_AT-1); \
34 else if (regno < PC_REGNUM) \
35 addr = PCB_OFFSET(pcb_fpregs[0]) + 4*(regno-FP0_REGNUM); \
36 else if (regno == PS_REGNUM) \
37 addr = UPAGES*NBPG-EF_SIZE+4*EF_SR; \
38 else if (regno == BADVADDR_REGNUM) \
39 addr = UPAGES*NBPG-EF_SIZE+4*EF_BADVADDR; \
40 else if (regno == LO_REGNUM) \
41 addr = UPAGES*NBPG-EF_SIZE+4*EF_MDLO; \
42 else if (regno == HI_REGNUM) \
43 addr = UPAGES*NBPG-EF_SIZE+4*EF_MDHI; \
44 else if (regno == CAUSE_REGNUM) \
45 addr = UPAGES*NBPG-EF_SIZE+4*EF_CAUSE; \
46 else if (regno == PC_REGNUM) \
47 addr = UPAGES*NBPG-EF_SIZE+4*EF_EPC; \
48 else if (regno < FCRCS_REGNUM) \
49 addr = PCB_OFFSET(pcb_fpregs[0]) + 4*(regno-FP0_REGNUM); \
50 else if (regno == FCRCS_REGNUM) \
51 addr = PCB_OFFSET(pcb_fpc_csr); \
52 else if (regno == FCRIR_REGNUM) \
53 addr = PCB_OFFSET(pcb_fpc_eir); \
54 else \
55 addr = 0;
56
57#include "mips/nm-mips.h"
58
59/* Override copies of {fetch,store}_inferior_registers in infptrace.c. */
60#define FETCH_INFERIOR_REGISTERS
This page took 0.313062 seconds and 4 git commands to generate.