OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [gdb/] [config/] [m68k/] [tm-apollo68b.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.