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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [config/] [arm/] [tm-embed.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 106 markom
/* 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
#undef LOWEST_PC
36
#define LOWEST_PC       0x20
37
 
38
/* Override defaults.  */
39
 
40
#undef THUMB_LE_BREAKPOINT
41
#define THUMB_LE_BREAKPOINT {0xbe,0xbe}       
42
#undef THUMB_BE_BREAKPOINT
43
#define THUMB_BE_BREAKPOINT {0xbe,0xbe}       
44
 
45
/* Specify that for the native compiler variables for a particular
46
   lexical context are listed after the beginning LBRAC instead of
47
   before in the executables list of symbols.  */
48
#define VARIABLES_INSIDE_BLOCK(desc, gcc_p) (!(gcc_p))
49
 
50
/* Functions for dealing with Thumb call thunks.  */
51
#define IN_SOLIB_CALL_TRAMPOLINE(pc, name)      arm_in_call_stub (pc, name)
52
#define SKIP_TRAMPOLINE_CODE(pc)                arm_skip_stub (pc)
53
extern int arm_in_call_stub PARAMS ((CORE_ADDR pc, char *name));
54
extern CORE_ADDR arm_skip_stub PARAMS ((CORE_ADDR pc));
55
 
56
/* Function to determine whether MEMADDR is in a Thumb function.  */
57
extern int arm_pc_is_thumb PARAMS ((bfd_vma memaddr));
58
 
59
/* Function to determine whether MEMADDR is in a call dummy called from
60
   a Thumb function.  */
61
extern int arm_pc_is_thumb_dummy PARAMS ((bfd_vma memaddr));
62
 
63
 
64
#undef  IN_SIGTRAMP
65
#define IN_SIGTRAMP(pc, name) 0
66
 
67
#endif /* TM_ARMEMBED_H */

powered by: WebSVN 2.1.0

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