s/Linux/.../
[deliverable/binutils-gdb.git] / gdb / config / mips / nm-linux.h
1 /* Native-dependent definitions for GNU/Linux on MIPS.
2
3 Copyright 1996, 2001, 2002 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_MIPSLINUX_H
23 #define NM_MIPSLINUX_H
24
25 #define MIPS_GNULINUX_TARGET
26
27 #include "nm-linux.h"
28
29 /* Return sizeof user struct to callers in less machine dependent
30 routines. Hard coded for cross-compilation friendliness. */
31
32 #define KERNEL_U_SIZE 504
33
34 /* ptrace register ``addresses'' are absolute. */
35
36 #define U_REGS_OFFSET 0
37
38 /* ptrace transfers longs, and expects addresses as longs. */
39
40 #define PTRACE_ARG3_TYPE long
41 #define PTRACE_XFER_TYPE long
42
43 #define REGISTER_U_ADDR(addr, blockend, regno) \
44 (addr) = mips_register_addr ((regno),(blockend))
45
46 int mips_linux_cannot_fetch_register (int regno);
47 int mips_linux_cannot_store_register (int regno);
48 #define CANNOT_FETCH_REGISTER(regno) mips_linux_cannot_fetch_register (regno)
49 #define CANNOT_STORE_REGISTER(regno) mips_linux_cannot_store_register (regno)
50
51 #endif /* NM_MIPSLINUX_H */
This page took 0.045941 seconds and 4 git commands to generate.