From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32210 invoked by alias); 22 Jul 2004 15:44:59 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 32195 invoked from network); 22 Jul 2004 15:44:57 -0000 Received: from unknown (HELO takamaka.act-europe.fr) (142.179.108.108) by sourceware.org with SMTP; 22 Jul 2004 15:44:57 -0000 Received: by takamaka.act-europe.fr (Postfix, from userid 507) id D0C8547D91; Thu, 22 Jul 2004 08:44:56 -0700 (PDT) Date: Thu, 22 Jul 2004 15:44:00 -0000 From: Joel Brobecker To: gdb-patches@sources.redhat.com Subject: [RFA/mips] 128-bit long doubles for N32/N64 Message-ID: <20040722154456.GG1289@gnat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="envbJBWh7q8WU6mo" Content-Disposition: inline User-Agent: Mutt/1.4i X-SW-Source: 2004-07/txt/msg00310.txt.bz2 --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 411 The attached patch fixes a SEGV described in: http://sources.redhat.com/ml/gdb-patches/2004-07/msg00290.html I followed Daniel's recommendation and made this change for all N32/N64 mips targets. 2004-07-22 Joel Brobecker * mips-tdep.c (mips_gdbarch_init): Set size of long double to 128 bits for N32 and N64 ABIs. Tested on mips-irix. OK to commit? -- Joel --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="mips-tdep.c.diff" Content-length: 981 Index: mips-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/mips-tdep.c,v retrieving revision 1.301 diff -u -p -r1.301 mips-tdep.c --- mips-tdep.c 10 Jul 2004 01:17:52 -0000 1.301 +++ mips-tdep.c 22 Jul 2004 15:37:12 -0000 @@ -5689,6 +5689,7 @@ mips_gdbarch_init (struct gdbarch_info i set_gdbarch_long_bit (gdbarch, 32); set_gdbarch_ptr_bit (gdbarch, 32); set_gdbarch_long_long_bit (gdbarch, 64); + set_gdbarch_long_double_bit (gdbarch, 128); break; case MIPS_ABI_N64: set_gdbarch_push_dummy_call (gdbarch, mips_n32n64_push_dummy_call); @@ -5699,6 +5700,7 @@ mips_gdbarch_init (struct gdbarch_info i set_gdbarch_long_bit (gdbarch, 64); set_gdbarch_ptr_bit (gdbarch, 64); set_gdbarch_long_long_bit (gdbarch, 64); + set_gdbarch_long_double_bit (gdbarch, 128); break; default: internal_error (__FILE__, __LINE__, "unknown ABI in switch"); --envbJBWh7q8WU6mo--