From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24074 invoked by alias); 30 Apr 2007 12:27:53 -0000 Received: (qmail 24059 invoked by uid 22791); 30 Apr 2007 12:27:51 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate4.de.ibm.com (HELO mtagate4.de.ibm.com) (195.212.29.153) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 30 Apr 2007 13:27:47 +0100 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate4.de.ibm.com (8.13.8/8.13.8) with ESMTP id l3UCRiXI193568 for ; Mon, 30 Apr 2007 12:27:44 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.3) with ESMTP id l3UCRiam3080390 for ; Mon, 30 Apr 2007 14:27:44 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l3UCRihw024151 for ; Mon, 30 Apr 2007 14:27:44 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id l3UCRhMP024148; Mon, 30 Apr 2007 14:27:43 +0200 Message-Id: <200704301227.l3UCRhMP024148@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Mon, 30 Apr 2007 14:27:43 +0200 Subject: Re: [RFC] Detecting and printing 128-bit long double values for PPC To: luisgpm@linux.vnet.ibm.com Date: Mon, 30 Apr 2007 12:28:00 -0000 From: "Ulrich Weigand" Cc: drow@false.org (Daniel Jacobowitz), gdb-patches@sourceware.org (gdb-patches ml) In-Reply-To: <1177803916.6280.64.camel@localhost> from "Luis Machado" at Apr 28, 2007 08:45:16 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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-04/txt/msg00403.txt.bz2 Luis Machado wrote: > Isn't GDB currently able to detect the type length in runtime in order > to correctly print those values? No, it isn't. How should GDB recognize the difference? > With this modification i've noticed that GDB cuts the extra precision > bytes for a binary built with -mlong-double-64, while printing the value > with the total avaiable precision when it's built with > -mlong-double-128. That's interesting. GDB will always read in 16 bytes after your modification -- maybe the binary you're building with -mlong-double-64 happens to have zeros after the "long double" variable your're reading? Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com