import gdb-1999-12-21 snapshot
[external/binutils.git] / gdb / config / arm / tm-embed.h
1 /* Definitions to target GDB to ARM embedded systems.
2    Copyright 1986-1989, 1991, 1993-1999 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., 59 Temple Place - Suite 330,
19    Boston, MA 02111-1307, USA.  */
20
21 #ifndef TM_ARMEMBED_H
22 #define TM_ARMEMBED_H
23
24 /* Include the common ARM definitions. */
25 #include "arm/tm-arm.h"
26
27 /* I don't know the real values for these.  */
28 #define TARGET_UPAGES UPAGES
29 #define TARGET_NBPG NBPG
30
31 /* Address of end of stack space.  */
32 #define STACK_END_ADDR (0x01000000 - (TARGET_UPAGES * TARGET_NBPG))
33
34 /* The first 0x20 bytes are the trap vectors.  */
35 #define LOWEST_PC       0x20
36
37 /* Override defaults.  */
38
39 #undef THUMB_LE_BREAKPOINT
40 #define THUMB_LE_BREAKPOINT {0xbe,0xbe}       
41 #undef THUMB_BE_BREAKPOINT
42 #define THUMB_BE_BREAKPOINT {0xbe,0xbe}       
43
44 /* Specify that for the native compiler variables for a particular
45    lexical context are listed after the beginning LBRAC instead of
46    before in the executables list of symbols.  */
47 #define VARIABLES_INSIDE_BLOCK(desc, gcc_p) (!(gcc_p))
48
49 /* Functions for dealing with Thumb call thunks.  */
50 #define IN_SOLIB_CALL_TRAMPOLINE(pc, name)      arm_in_call_stub (pc, name)
51 #define SKIP_TRAMPOLINE_CODE(pc)                arm_skip_stub (pc)
52 extern int arm_in_call_stub PARAMS ((CORE_ADDR pc, char *name));
53 extern CORE_ADDR arm_skip_stub PARAMS ((CORE_ADDR pc));
54
55 /* Function to determine whether MEMADDR is in a Thumb function.  */
56 extern int arm_pc_is_thumb PARAMS ((bfd_vma memaddr));
57
58 /* Function to determine whether MEMADDR is in a call dummy called from
59    a Thumb function.  */
60 extern int arm_pc_is_thumb_dummy PARAMS ((bfd_vma memaddr));
61
62
63 #undef  IN_SIGTRAMP
64 #define IN_SIGTRAMP(pc, name) 0
65
66 #endif /* TM_ARMEMBED_H */