From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28830 invoked by alias); 27 Nov 2007 20:16:01 -0000 Received: (qmail 28817 invoked by uid 22791); 27 Nov 2007 20:16:00 -0000 X-Spam-Check-By: sourceware.org Received: from igw2.br.ibm.com (HELO igw2.br.ibm.com) (32.104.18.25) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 27 Nov 2007 20:15:53 +0000 Received: from mailhub3.br.ibm.com (mailhub3 [9.18.232.110]) by igw2.br.ibm.com (Postfix) with ESMTP id 226D717F668 for ; Tue, 27 Nov 2007 18:11:52 -0200 (BRDT) Received: from d24av01.br.ibm.com (d24av01.br.ibm.com [9.18.232.46]) by mailhub3.br.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id lARKFmIF3371234 for ; Tue, 27 Nov 2007 18:15:49 -0200 Received: from d24av01.br.ibm.com (loopback [127.0.0.1]) by d24av01.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id lARKFmaU002965 for ; Tue, 27 Nov 2007 18:15:48 -0200 Received: from [9.18.238.251] (dyn532128.br.ibm.com [9.18.238.251]) by d24av01.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id lARKFlxE002962 for ; Tue, 27 Nov 2007 18:15:48 -0200 Subject: [commit/obvious] minor fixes in DFP code From: Thiago Jung Bauermann To: gdb-patches Content-Type: multipart/mixed; boundary="=-zaHKPbYyD1sUZNLowYlS" Date: Tue, 27 Nov 2007 20:16:00 -0000 Message-Id: <1196194552.6746.132.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-11/txt/msg00514.txt.bz2 --=-zaHKPbYyD1sUZNLowYlS Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 188 Hi, Just commited the following minor fixes which slipped through in the Decimal Floating Point support code. -- []'s Thiago Jung Bauermann Software Engineer IBM Linux Technology Center --=-zaHKPbYyD1sUZNLowYlS Content-Disposition: attachment; filename=dfp-obvious.diff Content-Type: text/x-patch; name=dfp-obvious.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-length: 2114 2007-11-27 Thiago Jung Bauermann * dfp.c (decimal_from_string): Remove superfluous newline from error string. (decimal_to_string): Likewise. * printcmd.c (printf_command): Change string buffer to use MAX_DECIMAL_STRING constant. * value.c (value_from_decfloat): Likewise. Index: dfp.c =================================================================== RCS file: /cvs/src/src/gdb/dfp.c,v retrieving revision 1.1 diff -u -r1.1 dfp.c --- dfp.c 25 Oct 2007 17:52:31 -0000 1.1 +++ dfp.c 27 Nov 2007 20:01:45 -0000 @@ -71,7 +71,7 @@ decimal128ToString ((decimal128 *) dec, s); break; default: - error (_("Unknown decimal floating point type.\n")); + error (_("Unknown decimal floating point type.")); break; } } @@ -103,7 +103,7 @@ decimal128FromString ((decimal128 *) dec, string, &set); break; default: - error (_("Unknown decimal floating point type.\n")); + error (_("Unknown decimal floating point type.")); break; } Index: printcmd.c =================================================================== RCS file: /cvs/src/src/gdb/printcmd.c,v retrieving revision 1.112 diff -u -r1.112 printcmd.c --- printcmd.c 5 Nov 2007 11:32:31 -0000 1.112 +++ printcmd.c 27 Nov 2007 20:01:45 -0000 @@ -2128,7 +2128,7 @@ case decfloat_arg: { char *eos; - char decstr[128]; + char decstr[MAX_DECIMAL_STRING]; unsigned int dfp_len = TYPE_LENGTH (value_type (val_args[i])); unsigned char *dfp_value_ptr = (unsigned char *) value_contents_all (val_args[i]) + value_offset (val_args[i]); Index: value.c =================================================================== RCS file: /cvs/src/src/gdb/value.c,v retrieving revision 1.52 diff -u -r1.52 value.c --- value.c 25 Oct 2007 18:01:58 -0000 1.52 +++ value.c 27 Nov 2007 20:01:45 -0000 @@ -1652,7 +1652,7 @@ if (expect_type) { int expect_len = TYPE_LENGTH (expect_type); - char decstr[128]; + char decstr[MAX_DECIMAL_STRING]; int real_len; decimal_to_string (decbytes, len, decstr); --=-zaHKPbYyD1sUZNLowYlS--