4dfc32916eede229d9cf2b946906091d800f6c27
[deliverable/binutils-gdb.git] / gdb / config / arm / tm-nbsd.h
1 /* Macro definitions for ARM running under NetBSD.
2 Copyright 1994, 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_NBSD_H
22 #define TM_NBSD_H
23
24 #include "arm/tm-arm.h"
25 #include "tm-nbsd.h"
26
27 #define JB_ELEMENT_SIZE sizeof(long) /* jmp_buf[_JBLEN] is array of ints */
28 #define JB_PC 24 /* Setjmp()'s return PC saved here */
29
30 /* Return non-zero if inside a shared-library entry stub. */
31 #undef IN_SOLIB_CALL_TRAMPOLINE
32 #define IN_SOLIB_CALL_TRAMPOLINE(pc, name) \
33 STREQ ((name), "_PROCEDURE_LINKAGE_TABLE_")
34
35 /* Figure out where the longjmp will land. Slurp the args out of the stack.
36 We expect the first arg to be a pointer to the jmp_buf structure from which
37 we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
38 This routine returns true on success */
39
40 extern int
41 get_longjmp_target (CORE_ADDR *);
42
43 #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
44
45 /* By convention, NetBSD uses the "other" register names. */
46 #define DEFAULT_REGISTER_NAMES additional_register_names
47
48 #endif /* TM_NBSD_H */
This page took 0.031976 seconds and 3 git commands to generate.