Remove h8/300 and z8k since not ready yet.
[deliverable/binutils-gdb.git] / gdb / tm-altos.h
CommitLineData
c653bc6d
JG
1/* Target definitions for GDB on an Altos 3068 (m68k running SVR2)
2 Copyright 1987, 1989, 1991, 1993 Free Software Foundation, Inc.
dd3b648e
RP
3
4This file is part of GDB.
5
99a7de40 6This program is free software; you can redistribute it and/or modify
dd3b648e 7it under the terms of the GNU General Public License as published by
99a7de40
JG
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
dd3b648e 10
99a7de40 11This program is distributed in the hope that it will be useful,
dd3b648e
RP
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
99a7de40
JG
17along with this program; if not, write to the Free Software
18Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
dd3b648e 19
84d82b1c
FF
20/* Define BPT_VECTOR if it is different than the default.
21 This is the vector number used by traps to indicate a breakpoint. */
dd3b648e 22
84d82b1c 23#define BPT_VECTOR 0xe
dd3b648e
RP
24
25/* Define this if the C compiler puts an underscore at the front
26 of external names before giving them to the linker. */
27
28#undef NAMES_HAVE_UNDERSCORE
29
dd3b648e
RP
30/* Address of end of stack space. */
31
32/*#define STACK_END_ADDR (0xffffff)*/
33#define STACK_END_ADDR (0x1000000)
34
35/* Amount PC must be decremented by after a breakpoint.
dd3b648e
RP
36 On the Altos, the kernel resets the pc to the trap instr */
37
38#define DECR_PC_AFTER_BREAK 0
39
b6666a5d
FF
40/* The only reason this is here is the tm-altos.h reference below. It
41 was moved back here from tm-68k.h. FIXME? */
42
43#define SKIP_PROLOGUE(pc) \
44{ register int op = read_memory_integer (pc, 2); \
45 if (op == 0047126) \
46 pc += 4; /* Skip link #word */ \
47 else if (op == 0044016) \
48 pc += 6; /* Skip link #long */ \
49 /* Not sure why branches are here. */ \
50 /* From tm-isi.h, tm-altos.h */ \
51 else if (op == 0060000) \
52 pc += 4; /* Skip bra #word */ \
53 else if (op == 00600377) \
54 pc += 6; /* skip bra #long */ \
55 else if ((op & 0177400) == 0060000) \
56 pc += 2; /* skip bra #char */ \
57}
58
dd3b648e 59#include "tm-68k.h"
This page took 0.086987 seconds and 4 git commands to generate.