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