2003-12-01 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / config / m68k / xm-sun2.h
1 // OBSOLETE /* Parameters for execution on a Sun, for GDB, the GNU debugger.
2 // OBSOLETE Copyright 1986, 1987, 1989, 1996 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,
19 // OBSOLETE Boston, MA 02111-1307, USA. */
20 // OBSOLETE
21 // OBSOLETE /* This is the amount to subtract from u.u_ar0
22 // OBSOLETE to get the offset in the core file of the register values. */
23 // OBSOLETE
24 // OBSOLETE #define KERNEL_U_ADDR 0x2800
25 // OBSOLETE \f
26 // OBSOLETE
27 // OBSOLETE /* Interface definitions for kernel debugger KDB. */
28 // OBSOLETE
29 // OBSOLETE /* Map machine fault codes into signal numbers.
30 // OBSOLETE First subtract 0, divide by 4, then index in a table.
31 // OBSOLETE Faults for which the entry in this table is 0
32 // OBSOLETE are not handled by KDB; the program's own trap handler
33 // OBSOLETE gets to handle then. */
34 // OBSOLETE
35 // OBSOLETE #define FAULT_CODE_ORIGIN 0
36 // OBSOLETE #define FAULT_CODE_UNITS 4
37 // OBSOLETE #define FAULT_TABLE \
38 // OBSOLETE { 0, 0, 0, 0, SIGTRAP, 0, 0, 0, \
39 // OBSOLETE 0, SIGTRAP, 0, 0, 0, 0, 0, SIGKILL, \
40 // OBSOLETE 0, 0, 0, 0, 0, 0, 0, 0, \
41 // OBSOLETE SIGILL }
42 // OBSOLETE
43 // OBSOLETE /* Start running with a stack stretching from BEG to END.
44 // OBSOLETE BEG and END should be symbols meaningful to the assembler.
45 // OBSOLETE This is used only for kdb. */
46 // OBSOLETE
47 // OBSOLETE #define INIT_STACK(beg, end) \
48 // OBSOLETE { asm (".globl end"); \
49 // OBSOLETE asm ("movel $ end, sp"); \
50 // OBSOLETE asm ("clrl fp"); }
51 // OBSOLETE
52 // OBSOLETE /* Push the frame pointer register on the stack. */
53 // OBSOLETE #define PUSH_FRAME_PTR \
54 // OBSOLETE asm ("movel fp, -(sp)");
55 // OBSOLETE
56 // OBSOLETE /* Copy the top-of-stack to the frame pointer register. */
57 // OBSOLETE #define POP_FRAME_PTR \
58 // OBSOLETE asm ("movl (sp), fp");
59 // OBSOLETE
60 // OBSOLETE /* After KDB is entered by a fault, push all registers
61 // OBSOLETE that GDB thinks about (all NUM_REGS of them),
62 // OBSOLETE so that they appear in order of ascending GDB register number.
63 // OBSOLETE The fault code will be on the stack beyond the last register. */
64 // OBSOLETE
65 // OBSOLETE #define PUSH_REGISTERS \
66 // OBSOLETE { asm ("clrw -(sp)"); \
67 // OBSOLETE asm ("pea 10(sp)"); \
68 // OBSOLETE asm ("movem $ 0xfffe,-(sp)"); }
69 // OBSOLETE
70 // OBSOLETE /* Assuming the registers (including processor status) have been
71 // OBSOLETE pushed on the stack in order of ascending GDB register number,
72 // OBSOLETE restore them and return to the address in the saved PC register. */
73 // OBSOLETE
74 // OBSOLETE #define POP_REGISTERS \
75 // OBSOLETE { asm ("subil $8,28(sp)"); \
76 // OBSOLETE asm ("movem (sp),$ 0xffff"); \
77 // OBSOLETE asm ("rte"); }
This page took 0.031764 seconds and 4 git commands to generate.