Commit | Line | Data |
---|---|---|
c877c8e6 | 1 | /* IBM PowerPC native-dependent macros for GDB, the GNU debugger. |
b6ba6518 | 2 | Copyright 1995, 2000 Free Software Foundation, Inc. |
c877c8e6 KB |
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 | |
863e0fe4 AO |
21 | |
22 | #include "nm-linux.h" | |
23 | ||
c877c8e6 KB |
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() | |
a14ed312 | 29 | extern int kernel_u_size (void); |
c877c8e6 | 30 | |
c877c8e6 KB |
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 | ||
fdb28ac4 KB |
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). */ | |
c877c8e6 | 43 | |
fdb28ac4 KB |
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 () | |
c877c8e6 | 47 | |
39f77062 KB |
48 | extern void lin_lwp_attach_lwp (ptid_t ptid, int verbose); |
49 | #define ATTACH_LWP(ptid, verbose) lin_lwp_attach_lwp ((ptid), (verbose)) | |
c877c8e6 | 50 | |
fdb28ac4 | 51 | #include <signal.h> |
c877c8e6 | 52 | |
fdb28ac4 KB |
53 | extern void lin_thread_get_thread_signals (sigset_t *mask); |
54 | #define GET_THREAD_SIGNALS(mask) lin_thread_get_thread_signals (mask) | |
c877c8e6 KB |
55 | |
56 | #endif /* #ifndef NM_LINUX_H */ |