]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/config/m68k/tm-apollo68b.h
import gdb-1999-07-07 post reformat
[thirdparty/binutils-gdb.git] / gdb / config / m68k / tm-apollo68b.h
CommitLineData
c906108c
SS
1/* Parameters for execution on Apollo 68k running BSD.
2 Copyright (C) 1986, 1987, 1989, 1991 Free Software Foundation, Inc.
3 Contributed by Cygnus Support.
4
c5aa993b
JM
5 This file is part of GDB.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
c906108c
SS
21
22/* Apollos use vector 0xb for the breakpoint vector */
23
24#define BPT_VECTOR 0xb
25
26#include "m68k/tm-m68k.h"
27
28#define FRAME_CHAIN_VALID(chain, thisframe) nonnull_frame_chain_valid (chain, thisframe)
29
30/* These are the jmp_buf registers I could guess. There are 13 registers
31 * in the buffer. There are 8 data registers, 6 general address registers,
32 * the Frame Pointer, the Stack Pointer, the PC and the SR in the chip. I would
33 * guess that 12 is the SR, but we don't need that anyway. 0 and 1 have
34 * me stumped. 4 appears to be a5 for some unknown reason. If you care
35 * about this, disassemble setjmp to find out. But don't do it with gdb :)
36 */
37
38#undef JB_SP
39#undef JB_FP
40#undef JB_PC
41#undef JB_D0
42#undef JB_D1
43#undef JB_D2
44#undef JB_D3
45#undef JB_D4
46#undef JB_D5
47
48#define JB_SP 2
49#define JB_FP 3
50#define JB_PC 5
51#define JB_D0 6
52#define JB_D1 7
53#define JB_D2 8
54#define JB_D3 9
55#define JB_D4 10
56#define JB_D5 11
57
58/* How to decide if we're in a shared library function. (Probably a wrong
59 definintion inherited from the VxWorks config file). */
60#define IN_SOLIB_CALL_TRAMPOLINE(pc, name) (name && strcmp(name, "<end_of_program>") == 0)