]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/config/gould/xm-np1.h
import gdb-1999-07-07 post reformat
[thirdparty/binutils-gdb.git] / gdb / config / gould / xm-np1.h
CommitLineData
c906108c
SS
1/* OBSOLETE /* Parameters for execution on a Gould NP1, for GDB, the GNU debugger. */
2/* OBSOLETE Copyright 1986, 1987, 1989, 1992 Free Software Foundation, Inc. */
3/* OBSOLETE */
4/* OBSOLETE This file is part of GDB. */
5/* OBSOLETE */
6/* OBSOLETE This program is free software; you can redistribute it and/or modify */
7/* OBSOLETE it under the terms of the GNU General Public License as published by */
8/* OBSOLETE the Free Software Foundation; either version 2 of the License, or */
9/* OBSOLETE (at your option) any later version. */
10/* OBSOLETE */
11/* OBSOLETE This program is distributed in the hope that it will be useful, */
12/* OBSOLETE but WITHOUT ANY WARRANTY; without even the implied warranty of */
13/* OBSOLETE MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
14/* OBSOLETE GNU General Public License for more details. */
15/* OBSOLETE */
16/* OBSOLETE You should have received a copy of the GNU General Public License */
17/* OBSOLETE along with this program; if not, write to the Free Software */
18/* OBSOLETE Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *x/ */
19/* OBSOLETE */
20/* OBSOLETE #define HOST_BYTE_ORDER BIG_ENDIAN */
21/* OBSOLETE */
22/* OBSOLETE /* Address of U in kernel space *x/ */
c5aa993b 23/* OBSOLETE #define KERNEL_U_ADDR 0x7fffc000 */
c906108c
SS
24/* OBSOLETE */
25/* OBSOLETE /* This is a piece of magic that is given a register number REGNO */
26/* OBSOLETE and as BLOCKEND the address in the system of the end of the user structure */
27/* OBSOLETE and stores in ADDR the address in the kernel or core dump */
28/* OBSOLETE of that register. *x/ */
c5aa993b
JM
29/* OBSOLETE #define REGISTER_U_ADDR(addr, blockend, regno) { \ */
30/* OBSOLETE addr = blockend + regno * 4; \ */
31/* OBSOLETE if (regno == VE_REGNUM) addr = blockend - 9 * 4; \ */
32/* OBSOLETE if (regno == PC_REGNUM) addr = blockend - 8 * 4; \ */
33/* OBSOLETE if (regno == PS_REGNUM) addr = blockend - 7 * 4; \ */
34/* OBSOLETE if (regno == FP_REGNUM) addr = blockend - 6 * 4; \ */
35/* OBSOLETE if (regno >= V1_REGNUM) \ */
36/* OBSOLETE addr = blockend + 16 * 4 + (regno - V1_REGNUM) * VR_SIZE; \ */
c906108c
SS
37/* OBSOLETE } */
38/* OBSOLETE */
39/* OBSOLETE /* Don't try to write the frame pointer. *x/ */
40/* OBSOLETE #define CANNOT_STORE_REGISTER(regno) ((regno) == FP_REGNUM) */
41/* OBSOLETE \f */
42/* OBSOLETE /* */
43/* OBSOLETE * No KDB support, Yet! *x/ */
44/* OBSOLETE /* Interface definitions for kernel debugger KDB. *x/ */
45/* OBSOLETE */
46/* OBSOLETE /* Map machine fault codes into signal numbers. */
47/* OBSOLETE First subtract 0, divide by 4, then index in a table. */
48/* OBSOLETE Faults for which the entry in this table is 0 */
49/* OBSOLETE are not handled by KDB; the program's own trap handler */
50/* OBSOLETE gets to handle then. *x/ */
51/* OBSOLETE */
52/* OBSOLETE #define FAULT_CODE_ORIGIN 0 */
53/* OBSOLETE #define FAULT_CODE_UNITS 4 */
54/* OBSOLETE #define FAULT_TABLE \ */
55/* OBSOLETE { 0, 0, 0, 0, SIGTRAP, 0, 0, 0, \ */
56/* OBSOLETE 0, SIGTRAP, 0, 0, 0, 0, 0, SIGKILL, \ */
57/* OBSOLETE 0, 0, 0, 0, 0, 0, 0, 0, \ */
58/* OBSOLETE SIGILL } */
59/* OBSOLETE */
60/* OBSOLETE /* Start running with a stack stretching from BEG to END. */
61/* OBSOLETE BEG and END should be symbols meaningful to the assembler. */
62/* OBSOLETE This is used only for kdb. *x/ */
63/* OBSOLETE */
64/* OBSOLETE #define INIT_STACK(beg, end) \ */
65/* OBSOLETE { asm (".globl end"); \ */
66/* OBSOLETE asm ("movel $ end, sp"); \ */
67/* OBSOLETE asm ("clrl fp"); } */
68/* OBSOLETE */
69/* OBSOLETE /* Push the frame pointer register on the stack. *x/ */
70/* OBSOLETE #define PUSH_FRAME_PTR \ */
71/* OBSOLETE asm ("movel fp, -(sp)"); */
72/* OBSOLETE */
73/* OBSOLETE /* Copy the top-of-stack to the frame pointer register. *x/ */
74/* OBSOLETE #define POP_FRAME_PTR \ */
75/* OBSOLETE asm ("movl (sp), fp"); */
76/* OBSOLETE */
77/* OBSOLETE /* After KDB is entered by a fault, push all registers */
78/* OBSOLETE that GDB thinks about (all NUM_REGS of them), */
79/* OBSOLETE so that they appear in order of ascending GDB register number. */
80/* OBSOLETE The fault code will be on the stack beyond the last register. *x/ */
81/* OBSOLETE */
82/* OBSOLETE #define PUSH_REGISTERS \ */
c5aa993b
JM
83/* OBSOLETE { asm ("clrw -(sp)"); \ */
84/* OBSOLETE asm ("pea 10(sp)"); \ */
c906108c
SS
85/* OBSOLETE asm ("movem $ 0xfffe,-(sp)"); } */
86/* OBSOLETE */
87/* OBSOLETE /* Assuming the registers (including processor status) have been */
88/* OBSOLETE pushed on the stack in order of ascending GDB register number, */
89/* OBSOLETE restore them and return to the address in the saved PC register. *x/ */
90/* OBSOLETE */
91/* OBSOLETE #define POP_REGISTERS \ */
92/* OBSOLETE { asm ("subil $8,28(sp)"); \ */
93/* OBSOLETE asm ("movem (sp),$ 0xffff"); \ */
94/* OBSOLETE asm ("rte"); } */