Initial import from FreeBSD RELENG_4:
[games.git] / gnu / usr.bin / binutils / gdb / alpha / tm.h
1 /* $FreeBSD: src/gnu/usr.bin/binutils/gdb/alpha/tm.h,v 1.2.2.1 2000/07/06 22:08:07 obrien Exp $ */
2 /* Definitions to make GDB run on an Alpha box under FreeBSD.  The
3    definitions here are used when the _target_ system is running Linux.
4    Copyright 1996 Free Software Foundation, Inc.
5
6 This file is part of GDB.
7
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
21
22 #ifndef TM_FREEBSDALPHA_H
23 #define TM_FREEBSDALPHA_H
24
25 #include "alpha/tm-alpha.h"
26 #ifndef S0_REGNUM
27 #define S0_REGNUM (T7_REGNUM+1)
28 #endif
29
30
31 /* Number of traps that happen between exec'ing the shell to run an
32    inferior, and when we finally get to the inferior code.  This is 2
33    on FreeBSD and most implementations.  */
34
35 #undef START_INFERIOR_TRAPS_EXPECTED
36 #define START_INFERIOR_TRAPS_EXPECTED 2
37
38 struct objfile;
39 void freebsd_uthread_new_objfile PARAMS ((struct objfile *objfile));
40 #define target_new_objfile(OBJFILE) freebsd_uthread_new_objfile (OBJFILE)
41
42 extern char *freebsd_uthread_pid_to_str PARAMS ((int pid));
43 #define target_pid_to_str(PID) freebsd_uthread_pid_to_str (PID)
44
45 #endif /* TM_FREEBSDALPHA_H */