From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13476 invoked by alias); 7 Dec 2001 21:09:13 -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 13443 invoked from network); 7 Dec 2001 21:09:09 -0000 Received: from unknown (HELO zwingli.cygnus.com) (208.245.165.35) by sources.redhat.com with SMTP; 7 Dec 2001 21:09:09 -0000 Received: by zwingli.cygnus.com (Postfix, from userid 442) id B91D85E9D8; Fri, 7 Dec 2001 16:10:26 -0500 (EST) To: gdb-patches@sources.redhat.com Subject: Re: RFA: float host/target confusion in `f' format References: <20010912044554.C94035E9D8@zwingli.cygnus.com> <3B9FAEA8.2070207@cygnus.com> From: Jim Blandy Date: Fri, 07 Dec 2001 13:09:00 -0000 In-Reply-To: Jim Blandy's message of 12 Sep 2001 14:29:22 -0500 Message-ID: X-Mailer: Gnus v5.3/Emacs 19.34 X-SW-Source: 2001-12/txt/msg00207.txt.bz2 I've committed this patch. Jim Blandy writes: > 2001-09-11 Jim Blandy > > * printcmd.c (print_scalar_formatted): Compare the length of the > value against the lengths of the target's floating-point types, > not the host's. Add support for `long double'. > > Index: gdb/printcmd.c > =================================================================== > RCS file: /cvs/src/src/gdb/printcmd.c,v > retrieving revision 1.27 > diff -c -r1.27 printcmd.c > *** gdb/printcmd.c 2001/09/12 04:18:08 1.27 > --- gdb/printcmd.c 2001/09/12 19:26:35 > *************** > *** 455,464 **** > break; > > case 'f': > ! if (len == sizeof (float)) > type = builtin_type_float; > ! else if (len == sizeof (double)) > type = builtin_type_double; > print_floating (valaddr, type, stream); > break; > > --- 455,466 ---- > break; > > case 'f': > ! if (len == TYPE_LENGTH (builtin_type_float)) > type = builtin_type_float; > ! else if (len == TYPE_LENGTH (builtin_type_double)) > type = builtin_type_double; > + else if (len == TYPE_LENGTH (builtin_type_long_double)) > + type = builtin_type_long_double; > print_floating (valaddr, type, stream); > break; > >