This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Set OpenBSD/mips64 long double type


Catch up with reality.  Committed as obvious.

2010-12-12  Mark Kettenis  <kettenis@gnu.org>

        * mips64obsd-tdep.c (floatformats_mips64_quad): New define.
        (mips64obsd_init_abi): Set long_double_bit and long_double_format.

Index: mips64obsd-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mips64obsd-tdep.c,v
retrieving revision 1.12
diff -u -p -r1.12 mips64obsd-tdep.c
--- mips64obsd-tdep.c	1 Jan 2010 07:31:37 -0000	1.12
+++ mips64obsd-tdep.c	12 Dec 2010 18:18:01 -0000
@@ -18,6 +18,7 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "defs.h"
+#include "gdbtypes.h"
 #include "osabi.h"
 #include "regcache.h"
 #include "regset.h"
@@ -30,6 +31,10 @@
 #include "mips-tdep.h"
 #include "solib-svr4.h"
 
+/* The MIPS64 Floating-Point Quad-Precision format is similar to
+   big-endian IA-64 Quad-Precision format.  */
+#define floatformats_mips64_quad floatformats_ia64_quad
+
 #define MIPS64OBSD_NUM_REGS 73
 
 /* Core file support.  */
@@ -147,6 +152,9 @@ mips64obsd_init_abi (struct gdbarch_info
 
   tramp_frame_prepend_unwinder (gdbarch, &mips64obsd_sigframe);
 
+  set_gdbarch_long_double_bit (gdbarch, 128);
+  set_gdbarch_long_double_format (gdbarch, floatformats_mips64_quad);
+
   /* OpenBSD/mips64 has SVR4-style shared libraries.  */
   set_solib_svr4_fetch_link_map_offsets
     (gdbarch, svr4_lp64_fetch_link_map_offsets);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]