2001-12-19 Fernando Nasser <fnasser@redhat.com>
[deliverable/binutils-gdb.git] / gdb / config / arm / tm-embed.h
1 /* Definitions to target GDB to ARM embedded systems.
2 Copyright 1986, 1987, 1988, 1989, 1991, 1993, 1994, 1995, 1996, 1997,
3 1998, 1999, 2000 Free Software Foundation, Inc.
4
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. */
21
22 #ifndef TM_ARMEMBED_H
23 #define TM_ARMEMBED_H
24
25 /* Include the common ARM definitions. */
26 #include "arm/tm-arm.h"
27
28 /* The remote stub should be able to single-step. */
29 #undef SOFTWARE_SINGLE_STEP_P
30 #define SOFTWARE_SINGLE_STEP_P() 0
31
32 /* I don't know the real values for these. */
33 #define TARGET_UPAGES UPAGES
34 #define TARGET_NBPG NBPG
35
36 /* Address of end of stack space. */
37 #define STACK_END_ADDR (0x01000000 - (TARGET_UPAGES * TARGET_NBPG))
38
39 /* The first 0x20 bytes are the trap vectors. */
40 #undef LOWEST_PC
41 #define LOWEST_PC 0x20
42
43 /* Override defaults. */
44
45 #undef THUMB_LE_BREAKPOINT
46 #define THUMB_LE_BREAKPOINT {0xbe,0xbe}
47 #undef THUMB_BE_BREAKPOINT
48 #define THUMB_BE_BREAKPOINT {0xbe,0xbe}
49
50 /* Specify that for the native compiler variables for a particular
51 lexical context are listed after the beginning LBRAC instead of
52 before in the executables list of symbols. */
53 #define VARIABLES_INSIDE_BLOCK(desc, gcc_p) (!(gcc_p))
54
55 /* Functions for dealing with Thumb call thunks. */
56 #define IN_SOLIB_CALL_TRAMPOLINE(pc, name) arm_in_call_stub (pc, name)
57 #define SKIP_TRAMPOLINE_CODE(pc) arm_skip_stub (pc)
58 extern int arm_in_call_stub (CORE_ADDR pc, char *name);
59 extern CORE_ADDR arm_skip_stub (CORE_ADDR pc);
60
61 #undef IN_SIGTRAMP
62 #define IN_SIGTRAMP(pc, name) 0
63
64 #endif /* TM_ARMEMBED_H */
This page took 0.032103 seconds and 5 git commands to generate.