s/Linux/.../
[deliverable/binutils-gdb.git] / gdb / config / alpha / nm-linux.h
1 /* Native definitions for alpha running GNU/Linux.
2
3 Copyright 1993, 1994, 1996, 1998, 2000, 2001, 2002 Free Software
4 Foundation, Inc.
5
6 This file is part of GDB.
7
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA. */
22
23 #ifndef NM_LINUX_H
24 #define NM_LINUX_H
25
26 #include "nm-linux.h"
27
28 /* Figure out where the longjmp will land. We expect that we have just entered
29 longjmp and haven't yet setup the stack frame, so the args are still in the
30 argument regs. A0_REGNUM points at the jmp_buf structure from which we
31 extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
32 This routine returns true on success */
33
34 #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
35 extern int get_longjmp_target (CORE_ADDR *);
36
37 /* ptrace register ``addresses'' are absolute. */
38
39 #define U_REGS_OFFSET 0
40
41 /* FIXME: This is probably true, or should be, on all GNU/Linux ports.
42 IA64? Sparc64? */
43 #define PTRACE_ARG3_TYPE long
44
45 /* ptrace transfers longs, the ptrace man page is lying. */
46
47 #define PTRACE_XFER_TYPE long
48
49 /* The alpha does not step over a breakpoint, the manpage is lying again. */
50
51 #define CANNOT_STEP_BREAKPOINT
52
53 /* GNU/Linux has shared libraries. */
54
55 #define GDB_TARGET_HAS_SHARED_LIBS
56
57 /* Given a pointer to either a gregset_t or fpregset_t, return a
58 pointer to the first register. */
59 #define ALPHA_REGSET_BASE(regsetp) ((long *) (regsetp))
60
61 #endif /* NM_LINUX_H */
This page took 0.034295 seconds and 4 git commands to generate.