MIPS/Linux support
[deliverable/binutils-gdb.git] / gdb / config / mips / nm-linux.h
1 /* Native-dependent definitions for Linux/MIPS.
2 Copyright 1996, 2001 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., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
20
21 #ifndef NM_MIPSLINUX_H
22 #define NM_MIPSLINUX_H
23
24 #define MIPS_GNULINUX_TARGET
25
26 #include "nm-linux.h"
27
28 /* Return sizeof user struct to callers in less machine dependent
29 routines. Hard coded for cross-compilation friendliness. */
30
31 #define KERNEL_U_SIZE 504
32
33 /* ptrace register ``addresses'' are absolute. */
34
35 #define U_REGS_OFFSET 0
36
37 /* ptrace transfers longs, and expects addresses as longs. */
38
39 #define PTRACE_ARG3_TYPE long
40 #define PTRACE_XFER_TYPE long
41
42 #define REGISTER_U_ADDR(addr, blockend, regno) \
43 (addr) = mips_register_addr ((regno),(blockend))
44
45 int mips_linux_cannot_fetch_register (int regno);
46 int mips_linux_cannot_store_register (int regno);
47 #define CANNOT_FETCH_REGISTER(regno) mips_linux_cannot_fetch_register (regno)
48 #define CANNOT_STORE_REGISTER(regno) mips_linux_cannot_store_register (regno)
49
50 /* FIXME: This should be moved to ../nm-linux.h once we have converted all
51 Linux targets to use the new threads stuff (without the #undef of
52 course). */
53
54 extern int lin_lwp_prepare_to_proceed (void);
55 #undef PREPARE_TO_PROCEED
56 #define PREPARE_TO_PROCEED(select_it) lin_lwp_prepare_to_proceed ()
57
58 extern void lin_lwp_attach_lwp (ptid_t ptid, int verbose);
59 #define ATTACH_LWP(ptid, verbose) lin_lwp_attach_lwp ((ptid), (verbose))
60
61 #include <signal.h>
62
63 extern void lin_thread_get_thread_signals (sigset_t *mask);
64 #define GET_THREAD_SIGNALS(mask) lin_thread_get_thread_signals (mask)
65
66 #endif /* NM_MIPSLINUX_H */
This page took 0.03126 seconds and 4 git commands to generate.