]> Git Repo - binutils.git/blob - gdb/tm-altos.h
* cadillac.c, cadillac-patches: Rename to energize.c and
[binutils.git] / gdb / tm-altos.h
1 /* Definitions to make GDB run on an Altos 3068 (m68k running SVR2)
2    Copyright (C) 1987, 1989, 1991 Free Software Foundation, Inc.
3
4 This file is part of GDB.
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
19
20 /* Define BPT_VECTOR if it is different than the default.
21    This is the vector number used by traps to indicate a breakpoint. */
22
23 #define BPT_VECTOR 0xe
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
30 /* COFF files don't have long filenames.  */
31
32 #define COFF_NO_LONG_FILE_NAMES
33
34 /* Address of end of stack space.  */
35
36 /*#define STACK_END_ADDR (0xffffff)*/
37 #define STACK_END_ADDR (0x1000000)
38
39 /* Amount PC must be decremented by after a breakpoint.
40    On the Altos, the kernel resets the pc to the trap instr */
41
42 #define DECR_PC_AFTER_BREAK 0
43
44 /* The only reason this is here is the tm-altos.h reference below.  It
45    was moved back here from tm-68k.h.  FIXME? */
46
47 #define SKIP_PROLOGUE(pc)   \
48 { register int op = read_memory_integer (pc, 2);        \
49   if (op == 0047126)                                    \
50     pc += 4;   /* Skip link #word */                    \
51   else if (op == 0044016)                               \
52     pc += 6;   /* Skip link #long */                    \
53   /* Not sure why branches are here.  */                \
54   /* From tm-isi.h, tm-altos.h */                       \
55   else if (op == 0060000)                               \
56     pc += 4;   /* Skip bra #word */                     \
57   else if (op == 00600377)                              \
58     pc += 6;   /* skip bra #long */                     \
59   else if ((op & 0177400) == 0060000)                   \
60     pc += 2;   /* skip bra #char */                     \
61 }
62
63 #include "tm-68k.h"
This page took 0.034002 seconds and 4 git commands to generate.