This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] i386 Solaris multi-arch tweaks
- From: Mark Kettenis <kettenis at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 1 Jul 2002 11:14:32 +0200 (CEST)
- Subject: [PATCH] i386 Solaris multi-arch tweaks
A straightforward multi-arch patch.
Committed.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
* i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
this macro. Include "value.h".
Index: i386-sol2-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-sol2-tdep.c,v
retrieving revision 1.2
diff -u -r1.2 i386-sol2-tdep.c
--- i386-sol2-tdep.c 15 Jun 2002 18:49:52 -0000 1.2
+++ i386-sol2-tdep.c 1 Jul 2002 09:00:51 -0000
@@ -19,6 +19,7 @@
Boston, MA 02111-1307, USA. */
#include "defs.h"
+#include "value.h"
#include "i386-tdep.h"
@@ -45,6 +46,10 @@
set_gdbarch_pc_in_sigtramp (gdbarch, i386_sol2_pc_in_sigtramp);
tdep->sigtramp_saved_pc = i386bsd_sigtramp_saved_pc;
tdep->sc_pc_offset = 36 + 14 * 4;
+
+ /* Assume that the prototype flag can be trusted. */
+ set_gdbarch_coerce_float_to_double (gdbarch,
+ standard_coerce_float_to_double);
}
Index: config/i386/tm-i386sol2.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/tm-i386sol2.h,v
retrieving revision 1.12
diff -u -r1.12 tm-i386sol2.h
--- config/i386/tm-i386sol2.h 15 Jun 2002 18:09:31 -0000 1.12
+++ config/i386/tm-i386sol2.h 1 Jul 2002 09:00:51 -0000
@@ -23,14 +23,6 @@
#include "i386/tm-i386v4.h"
-/* If the current gcc for for this target does not produce correct
- debugging information for float parameters, both prototyped and
- unprototyped, then define this macro. This forces gdb to always
- assume that floats are passed as doubles and then converted in the
- callee. */
-
-#define COERCE_FLOAT_TO_DOUBLE(formal, actual) (1)
-
/* The SunPRO compiler puts out 0 instead of the address in N_SO symbols,
and for SunPRO 3.0, N_FUN symbols too. */
#define SOFUN_ADDRESS_MAYBE_MISSING