1 /* Target definitions for GNU/Linux on ARM, for GDB.
2 Copyright 1999, 2000 Free Software Foundation, Inc.
4 This file is part of GDB.
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.
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.
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. */
24 /* Include the common ARM target definitions. */
25 #include "arm/tm-arm.h"
27 #include "config/tm-linux.h"
29 /* We've multi-arched this. */
30 #undef SKIP_TRAMPOLINE_CODE
32 /* When we call a function in a shared library, and the PLT sends us
33 into the dynamic linker to find the function's real address, we
34 need to skip over the dynamic linker call. This function decides
35 when to skip, and where to skip to. See the comments for
36 SKIP_SOLIB_RESOLVER at the top of infrun.c. */
38 #undef IN_SOLIB_DYNSYM_RESOLVE_CODE
39 extern CORE_ADDR
arm_in_solib_dynsym_resolve_code (CORE_ADDR pc
, char *name
);
40 #define IN_SOLIB_DYNSYM_RESOLVE_CODE arm_in_solib_dynsym_resolve_code
41 /* ScottB: Current definition is
42 extern CORE_ADDR in_svr4_dynsym_resolve_code (CORE_ADDR pc, char *name);
43 #define IN_SOLIB_DYNSYM_RESOLVE_CODE in_svr4_dynsym_resolve_code */
46 /* When the ARM Linux kernel invokes a signal handler, the return
47 address points at a special instruction which'll trap back into
48 the kernel. These definitions are used to identify this bit of
49 code as a signal trampoline in order to support backtracing
50 through calls to signal handlers. */
52 int arm_linux_in_sigtramp (CORE_ADDR pc
, char *name
);
53 #define DEPRECATED_IN_SIGTRAMP(pc, name) arm_linux_in_sigtramp (pc, name)
55 /* Each OS has different mechanisms for accessing the various
56 registers stored in the sigcontext structure. These definitions
57 provide a mechanism by which the generic code in arm-tdep.c can
58 find the addresses at which various registers are saved at in the
59 sigcontext structure. If SIGCONTEXT_REGISTER_ADDRESS is not
60 defined, arm-tdep.c will define it to be 0. (See ia64-tdep.c and
61 ia64-linux-tdep.c to see what a similar mechanism looks like when
64 extern CORE_ADDR
arm_linux_sigcontext_register_address (CORE_ADDR
, CORE_ADDR
,
66 #define SIGCONTEXT_REGISTER_ADDRESS arm_linux_sigcontext_register_address
68 #endif /* TM_ARMLINUX_H */
This page took 0.034595 seconds and 4 git commands to generate.