Phase 1 of the ptid_t changes.
[deliverable/binutils-gdb.git] / gdb / config / powerpc / nm-linux.h
1 /* IBM PowerPC native-dependent macros for GDB, the GNU debugger.
2 Copyright 1995, 2000 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., 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20 #ifndef NM_LINUX_H
21
22 #include "nm-linux.h"
23
24 #define NM_LINUX_H
25
26 /* Return sizeof user struct to callers in less machine dependent routines */
27
28 #define KERNEL_U_SIZE kernel_u_size()
29 extern int kernel_u_size (void);
30
31 #define U_REGS_OFFSET 0
32
33 #define REGISTER_U_ADDR(addr, blockend, regno) \
34 (addr) = ppc_register_u_addr ((blockend),(regno));
35
36 /* No <sys/reg.h> */
37
38 #define NO_SYS_REG_H
39
40 /* FIXME: kettenis/2000-09-03: This should be moved to ../nm-linux.h
41 once we have converted all Linux targets to use the new threads
42 stuff (without the #undef of course). */
43
44 extern int lin_lwp_prepare_to_proceed (void);
45 #undef PREPARE_TO_PROCEED
46 #define PREPARE_TO_PROCEED(select_it) lin_lwp_prepare_to_proceed ()
47
48 extern void lin_lwp_attach_lwp (ptid_t ptid, int verbose);
49 #define ATTACH_LWP(ptid, verbose) lin_lwp_attach_lwp ((ptid), (verbose))
50
51 #include <signal.h>
52
53 extern void lin_thread_get_thread_signals (sigset_t *mask);
54 #define GET_THREAD_SIGNALS(mask) lin_thread_get_thread_signals (mask)
55
56 #endif /* #ifndef NM_LINUX_H */
This page took 0.035545 seconds and 4 git commands to generate.