]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/gdb/gdb/config/i386/tm-i386sol2.h
This commit was generated by cvs2svn to compensate for changes in r128266,
[FreeBSD/FreeBSD.git] / contrib / gdb / gdb / config / i386 / tm-i386sol2.h
1 /* Macro definitions for GDB on an Intel i386 running Solaris 2.
2    Copyright 1998, 1999, 2000 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., 59 Temple Place - Suite 330,
19    Boston, MA 02111-1307, USA.  */
20
21 #ifndef TM_I386SOL2_H
22 #define TM_I386SOL2_H 1
23
24 #define HAVE_I387_REGS
25 #include "i386/tm-i386v4.h"
26
27 /* We use stabs-in-ELF with the DWARF register numbering scheme.  */
28
29 #undef STAB_REG_TO_REGNUM
30 #define STAB_REG_TO_REGNUM(reg) i386_dwarf_reg_to_regnum ((reg))
31
32 /* If the current gcc for for this target does not produce correct
33    debugging information for float parameters, both prototyped and
34    unprototyped, then define this macro.  This forces gdb to always
35    assume that floats are passed as doubles and then converted in the
36    callee. */
37
38 #define COERCE_FLOAT_TO_DOUBLE(formal, actual) (1)
39
40 /* Signal handler frames under Solaris 2 are recognized by a return address
41    of 0xFFFFFFFF, the third parameter on the signal handler stack is
42    a pointer to an ucontext.  */
43 #undef sigtramp_saved_pc
44 #undef I386V4_SIGTRAMP_SAVED_PC
45 #define SIGCONTEXT_PC_OFFSET (36 + 14 * 4)
46 #undef IN_SIGTRAMP
47 #define IN_SIGTRAMP(pc, name) (pc == 0xFFFFFFFF)
48
49 /* The SunPRO compiler puts out 0 instead of the address in N_SO symbols,
50    and for SunPRO 3.0, N_FUN symbols too.  */
51 #define SOFUN_ADDRESS_MAYBE_MISSING
52
53 extern char *sunpro_static_transform_name (char *);
54 #define STATIC_TRANSFORM_NAME(x) sunpro_static_transform_name (x)
55 #define IS_STATIC_TRANSFORM_NAME(name) ((name)[0] == '.')
56
57 #define FAULTED_USE_SIGINFO
58
59 #endif /* ifndef TM_I386SOL2_H */