]> Git Repo - binutils.git/blob - gdb/config/sparc/tm-nbsd.h
* configure.in: Check for working mmap, ansi headers, string.h,
[binutils.git] / gdb / config / sparc / tm-nbsd.h
1 /* Macro definitions for Sparc running under NetBSD.
2    Copyright 1994 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 TM_NBSD_H
21 #define TM_NBSD_H
22
23 #include "sparc/tm-sparc.h"
24 #include "tm-nbsd.h"
25
26 /* make things match up with what is expected in sparc-nat.c */
27 #define regs            trapframe
28 #define fp_status       fpstate
29
30 #define r_g1            tf_global[1]
31 #define r_ps            tf_psr
32 #define r_pc            tf_pc
33 #define r_npc           tf_npc
34 #define r_y             tf_y
35
36 #define fpu             fpstate
37 #define fpu_regs        fs_regs
38 #define fpu_fsr         fs_fsr
39 #define fpu_fr          fs_regs
40 #define Fpu_fsr         fs_fsr
41 #define FPU_FSR_TYPE    int
42
43 #define PTRACE_GETREGS   PT_GETREGS
44 #define PTRACE_GETFPREGS PT_GETFPREGS
45 #define PTRACE_SETREGS   PT_SETREGS
46 #define PTRACE_SETFPREGS PT_SETFPREGS
47
48 #endif /* TM_NBSD_H */
This page took 0.025907 seconds and 4 git commands to generate.