* config/alpha/nm-linux.h (TARGET_ELF64, PSIGNAL_IN_SIGNAL_H):
[deliverable/binutils-gdb.git] / gdb / config / alpha / nm-linux.h
1 /* Native definitions for alpha running Linux.
2 Copyright 1993, 1994, 1996, 1998, 2000, 2001
3 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 NM_LINUX_H
23 #define NM_LINUX_H
24
25 #include "nm-linux.h"
26
27 /* Figure out where the longjmp will land. We expect that we have just entered
28 longjmp and haven't yet setup the stack frame, so the args are still in the
29 argument regs. A0_REGNUM points at the jmp_buf structure from which we
30 extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
31 This routine returns true on success */
32
33 #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
34 extern int get_longjmp_target (CORE_ADDR *);
35
36 /* ptrace register ``addresses'' are absolute. */
37
38 #define U_REGS_OFFSET 0
39
40 /* FIXME: This is probably true, or should be, on all Linux ports.
41 IA64? Sparc64? */
42 #define PTRACE_ARG3_TYPE long
43
44 /* ptrace transfers longs, the ptrace man page is lying. */
45
46 #define PTRACE_XFER_TYPE long
47
48 /* The alpha does not step over a breakpoint, the manpage is lying again. */
49
50 #define CANNOT_STEP_BREAKPOINT
51
52 /* Linux has shared libraries. */
53
54 #define GDB_TARGET_HAS_SHARED_LIBS
55
56 /* Given a pointer to either a gregset_t or fpregset_t, return a
57 pointer to the first register. */
58 #define ALPHA_REGSET_BASE(regsetp) ((long *) (regsetp))
59
60 /* FIXME: kettenis/2000-09-03: This should be moved to ../nm-linux.h
61 once we have converted all Linux targets to use the new threads
62 stuff (without the #undef of course). */
63
64 extern int lin_lwp_prepare_to_proceed (void);
65 #undef PREPARE_TO_PROCEED
66 #define PREPARE_TO_PROCEED(select_it) lin_lwp_prepare_to_proceed ()
67
68 extern void lin_lwp_attach_lwp (ptid_t pid, int verbose);
69 #define ATTACH_LWP(ptid, verbose) lin_lwp_attach_lwp ((ptid), (verbose))
70
71 #include <signal.h>
72
73 extern void lin_thread_get_thread_signals (sigset_t *mask);
74 #define GET_THREAD_SIGNALS(mask) lin_thread_get_thread_signals (mask)
75
76 #endif /* NM_LINUX_H */
This page took 0.032015 seconds and 5 git commands to generate.