Clean up the routing and networking code before I parallelize routing.
[games.git] / gnu / usr.bin / binutils215 / gdb / i386 / tm.h
1 /*
2  * $DragonFly: src/gnu/usr.bin/binutils215/gdb/i386/Attic/tm.h,v 1.1 2004/12/20 13:14:44 asmodai Exp $
3  */
4 /* Target macro definitions for i386 running FreeBSD
5    Copyright (C) 1997 Free Software Foundation, Inc.
6
7 This file is part of GDB.
8
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.
13
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.
18
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., 675 Mass Ave, Cambridge, MA 02139, USA.  */
22
23 #ifndef TM_FBSD_H
24 #define TM_FBSD_H 1
25
26 #include "i386/tm-i386bsd.h"
27
28 #undef NUM_REGS
29 #define NUM_REGS 16
30
31 extern struct frame_info *setup_arbitrary_frame PARAMS ((int, CORE_ADDR *));
32
33 #define SETUP_ARBITRARY_FRAME(argc, argv) setup_arbitrary_frame (argc, argv)
34
35 extern void i386_float_info PARAMS ((void));
36
37 #define FLOAT_INFO i386_float_info ()
38
39 #define IN_SOLIB_CALL_TRAMPOLINE(pc, name) STREQ (name, "_DYNAMIC")
40
41 /* Saved Pc.  Get it from sigcontext if within sigtramp.  */
42
43 extern CORE_ADDR fbsd_kern_frame_saved_pc (struct frame_info *);
44 #undef FRAME_SAVED_PC
45 #define FRAME_SAVED_PC(FRAME) \
46   (kernel_debugging ? fbsd_kern_frame_saved_pc(FRAME) : \
47   (((FRAME)->signal_handler_caller \
48     ? sigtramp_saved_pc (FRAME) \
49     : read_memory_integer ((FRAME)->frame + 4, 4)) \
50    ))
51
52 /* On FreeBSD, sigtramp has size 0x18 and is immediately below the
53    ps_strings struct which has size 0x10 and is at the top of the
54    user stack.  */
55
56 #undef SIGTRAMP_START
57 #undef SIGTRAMP_END
58 #define SIGTRAMP_START(pc)      0xbfbfdfd8
59 #define SIGTRAMP_END(pc)        0xbfbfdff0
60
61 struct objfile;
62 void freebsd_uthread_new_objfile PARAMS ((struct objfile *objfile));
63 #define target_new_objfile(OBJFILE) freebsd_uthread_new_objfile (OBJFILE)
64
65 extern char *freebsd_uthread_pid_to_str PARAMS ((int pid));
66 #define target_pid_to_str(PID) freebsd_uthread_pid_to_str (PID)
67
68 #endif  /* ifndef TM_FBSD_H */