aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-sol2-tdep.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2003-12-14 20:28:56 +0000
committerDaniel Jacobowitz <drow@false.org>2003-12-14 20:28:56 +0000
commit0c6f48899279371568f8e0d7d94c9c2513b021d6 (patch)
tree552740a212dbe677b2407f14ff09dd07bf07eed6 /gdb/i386-sol2-tdep.c
parentd65bf6c15a506c2ab4b723a292714f5abdccb343 (diff)
downloadgdb-0c6f48899279371568f8e0d7d94c9c2513b021d6.zip
gdb-0c6f48899279371568f8e0d7d94c9c2513b021d6.tar.gz
gdb-0c6f48899279371568f8e0d7d94c9c2513b021d6.tar.bz2
Merge drow-cplus-branch to:
cvs rtag -D 2003-12-14 00:00:00 UTC drow-cplus-merge-20031214 gdb+dejagnu
Diffstat (limited to 'gdb/i386-sol2-tdep.c')
-rw-r--r--gdb/i386-sol2-tdep.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/gdb/i386-sol2-tdep.c b/gdb/i386-sol2-tdep.c
index c72a7ed..78487af 100644
--- a/gdb/i386-sol2-tdep.c
+++ b/gdb/i386-sol2-tdep.c
@@ -1,5 +1,5 @@
/* Target-dependent code for Solaris x86.
- Copyright 2002 Free Software Foundation, Inc.
+ Copyright 2002, 2003 Free Software Foundation, Inc.
This file is part of GDB.
@@ -20,6 +20,7 @@
#include "defs.h"
#include "value.h"
+#include "osabi.h"
#include "i386-tdep.h"
@@ -41,16 +42,8 @@ i386_sol2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
/* Solaris is SVR4-based. */
i386_svr4_init_abi (info, gdbarch);
- /* Signal trampolines are different from SVR4, in fact they're
- rather similar to BSD. */
+ /* Signal trampolines are slightly different from SVR4. */
set_gdbarch_pc_in_sigtramp (gdbarch, i386_sol2_pc_in_sigtramp);
- tdep->sigcontext_addr = i386bsd_sigcontext_addr;
- tdep->sc_pc_offset = 36 + 14 * 4;
- tdep->sc_sp_offset = 36 + 17 * 4;
-
- /* Assume that the prototype flag can be trusted. */
- set_gdbarch_coerce_float_to_double (gdbarch,
- standard_coerce_float_to_double);
}
@@ -75,6 +68,6 @@ _initialize_i386_sol2_tdep (void)
gdbarch_register_osabi_sniffer (bfd_arch_i386, bfd_target_elf_flavour,
i386_sol2_osabi_sniffer);
- gdbarch_register_osabi (bfd_arch_i386, GDB_OSABI_SOLARIS,
+ gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_SOLARIS,
i386_sol2_init_abi);
}