Phase 1 of the ptid_t changes.
[deliverable/binutils-gdb.git] / gdb / config / powerpc / nm-linux.h
CommitLineData
c877c8e6 1/* IBM PowerPC native-dependent macros for GDB, the GNU debugger.
b6ba6518 2 Copyright 1995, 2000 Free Software Foundation, Inc.
c877c8e6
KB
3
4This file is part of GDB.
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
18Foundation, 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 29extern 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
44extern 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
48extern 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
53extern 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 */
This page took 0.083908 seconds and 4 git commands to generate.