From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24622 invoked by alias); 4 Mar 2003 17:24:47 -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 24612 invoked from network); 4 Mar 2003 17:24:46 -0000 Received: from unknown (HELO mx1.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 4 Mar 2003 17:24:46 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h24HOkQ14703 for ; Tue, 4 Mar 2003 12:24:46 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h24HOkV32607 for ; Tue, 4 Mar 2003 12:24:46 -0500 Received: from localhost.localdomain (vpn50-35.rdu.redhat.com [172.16.50.35]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h24HOjC07098 for ; Tue, 4 Mar 2003 12:24:45 -0500 Received: (from kev@localhost) by localhost.localdomain (8.11.6/8.11.6) id h24HOes23901 for gdb-patches@sources.redhat.com; Tue, 4 Mar 2003 10:24:40 -0700 Date: Tue, 04 Mar 2003 17:24:00 -0000 From: Kevin Buettner Message-Id: <1030304172439.ZM23900@localhost.localdomain> To: gdb-patches@sources.redhat.com Subject: [RFA] mips-tdep.c: Fix printing of floats in "info all-registers" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-03/txt/msg00098.txt.bz2 When doing "info all-registers" on 64-bit mips, floating point values are not being displayed correctly. OTOH, the output of "info float" is correct. Thanks to Chris Demetriou for bringing this problem to my attention. Okay? * mips-tdep.c (do_fp_register_row): Fix typo which caused a double type to be used when attempting to unpack a float. Index: mips-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/mips-tdep.c,v retrieving revision 1.168 diff -u -p -r1.168 mips-tdep.c --- mips-tdep.c 3 Mar 2003 20:50:19 -0000 1.168 +++ mips-tdep.c 4 Mar 2003 17:16:24 -0000 @@ -4150,7 +4150,7 @@ do_fp_register_row (int regnum) { /* Eight byte registers: print each one as float AND as double. */ mips_read_fp_register_single (regnum, raw_buffer); - flt1 = unpack_double (mips_double_register_type (), raw_buffer, &inv1); + flt1 = unpack_double (mips_float_register_type (), raw_buffer, &inv1); mips_read_fp_register_double (regnum, raw_buffer); doub = unpack_double (mips_double_register_type (), raw_buffer, &inv3);