From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9071 invoked by alias); 21 Jan 2008 14:55:01 -0000 Received: (qmail 9063 invoked by uid 22791); 21 Jan 2008 14:55:00 -0000 X-Spam-Check-By: sourceware.org Received: from igw1.br.ibm.com (HELO igw1.br.ibm.com) (32.104.18.24) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 21 Jan 2008 14:54:39 +0000 Received: from mailhub1.br.ibm.com (mailhub1 [9.18.232.109]) by igw1.br.ibm.com (Postfix) with ESMTP id 2B70A32C0C6 for ; Mon, 21 Jan 2008 12:33:13 -0200 (BRDT) Received: from d24av01.br.ibm.com (d24av01.br.ibm.com [9.18.232.46]) by mailhub1.br.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id m0LEsZba3698748 for ; Mon, 21 Jan 2008 12:54:35 -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 m0LEsY1R017844 for ; Mon, 21 Jan 2008 12:54:35 -0200 Received: from [9.18.238.41] (dyn531774.br.ibm.com [9.18.238.41]) by d24av01.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id m0LEsYM2017836; Mon, 21 Jan 2008 12:54:34 -0200 Subject: Re: Printing decimal128 types out of registers From: Thiago Jung Bauermann To: Daniel Jacobowitz Cc: Luis Machado , gdb-patches@sourceware.org In-Reply-To: <20080119000423.GA15057@caradoc.them.org> References: <1194460412.6686.34.camel@localhost> <1200596592.27321.20.camel@gargoyle> <1200598580.32125.11.camel@localhost.localdomain> <1200670954.10815.1.camel@gargoyle> <20080119000423.GA15057@caradoc.them.org> Content-Type: text/plain Date: Mon, 21 Jan 2008 14:55:00 -0000 Message-Id: <1200927274.32125.36.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.12.2 Content-Transfer-Encoding: 7bit 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: 2008-01/txt/msg00505.txt.bz2 Hi, Luis is on vacation at the moment, so I'll answer this for him... On Fri, 2008-01-18 at 19:04 -0500, Daniel Jacobowitz wrote: > If the feature is not going to contain anything, I think it should be > a property of the floating point feature rather than an independent > feature - one which says "interpret these FP registers as DFP also", > or something similar. > > That's how I would handle MMX versus SSE. However, since there is a > useful software implementation that uses the same registers, Mark is > right - we can just show them all the time. Yes, even for software decimal float implementations the calling convention for PowerPC. is to put _Decimal128 in a pair of float registers I was talking to Luis about this, and he suggested an approach other than using pseudo registers: create a way to make GDB consider two consecutive registers as contiguous data. Since there are other types that are also passed in consecutive registers (e.g., long long, soft-float, IBM lon double), this mechanism would be more useful. I think this is a good idea. Perhaps some syntax could be created, like: (gdb) print {_Decimal128} $f2,$f3 $1 = 1.2 What do you think? -- []'s Thiago Jung Bauermann Software Engineer IBM Linux Technology Center