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