2 * $DragonFly: src/gnu/usr.bin/binutils215/gdb/i386/Attic/tm.h,v 1.1 2004/12/20 13:14:44 asmodai Exp $
4 /* Target macro definitions for i386 running FreeBSD
5 Copyright (C) 1997 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., 675 Mass Ave, Cambridge, MA 02139, USA. */
26 #include "i386/tm-i386bsd.h"
31 extern struct frame_info *setup_arbitrary_frame PARAMS ((int, CORE_ADDR *));
33 #define SETUP_ARBITRARY_FRAME(argc, argv) setup_arbitrary_frame (argc, argv)
35 extern void i386_float_info PARAMS ((void));
37 #define FLOAT_INFO i386_float_info ()
39 #define IN_SOLIB_CALL_TRAMPOLINE(pc, name) STREQ (name, "_DYNAMIC")
41 /* Saved Pc. Get it from sigcontext if within sigtramp. */
43 extern CORE_ADDR fbsd_kern_frame_saved_pc (struct frame_info *);
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)) \
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
58 #define SIGTRAMP_START(pc) 0xbfbfdfd8
59 #define SIGTRAMP_END(pc) 0xbfbfdff0
62 void freebsd_uthread_new_objfile PARAMS ((struct objfile *objfile));
63 #define target_new_objfile(OBJFILE) freebsd_uthread_new_objfile (OBJFILE)
65 extern char *freebsd_uthread_pid_to_str PARAMS ((int pid));
66 #define target_pid_to_str(PID) freebsd_uthread_pid_to_str (PID)
68 #endif /* ifndef TM_FBSD_H */