From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17766 invoked by alias); 17 Oct 2006 14:43:45 -0000 Received: (qmail 17755 invoked by uid 22791); 17 Oct 2006 14:43:44 -0000 X-Spam-Check-By: sourceware.org Received: from lon-del-03.spheriq.net (HELO lon-del-03.spheriq.net) (195.46.50.99) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 17 Oct 2006 14:43:31 +0000 Received: from lon-out-02.spheriq.net ([195.46.50.130]) by lon-del-03.spheriq.net with ESMTP id k9HEhQ40000948 for ; Tue, 17 Oct 2006 14:43:26 GMT Received: from lon-cus-01.spheriq.net (lon-cus-01.spheriq.net [195.46.50.37]) by lon-out-02.spheriq.net with ESMTP id k9HEhQs0008459 for ; Tue, 17 Oct 2006 14:43:26 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by lon-cus-01.spheriq.net with ESMTP id k9HEhMAs010001 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Tue, 17 Oct 2006 14:43:25 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 1613CDA46 for ; Tue, 17 Oct 2006 14:43:22 +0000 (GMT) Received: from mail1.bri.st.com (mail1.bri.st.com [164.129.8.218]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 151F647493 for ; Tue, 17 Oct 2006 14:43:20 +0000 (GMT) Received: from [164.129.15.13] (bri1043.bri.st.com [164.129.15.13]) by mail1.bri.st.com (MOS 3.5.8-GR) with ESMTP id CIC68744 (AUTH stubbsa); Tue, 17 Oct 2006 15:43:18 +0100 (BST) Message-ID: <4534EC06.3050200@st.com> Date: Tue, 17 Oct 2006 14:43:00 -0000 From: Andrew STUBBS User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: gdb@sourceware.org Subject: Re: GDB printf command References: <4534C695.2050206@st.com> <20061017132426.GA28323@nevyn.them.org> <4534E3FF.9030505@st.com> <20061017142451.GA30620@nevyn.them.org> In-Reply-To: <20061017142451.GA30620@nevyn.them.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00125.txt.bz2 Daniel Jacobowitz wrote: > On Tue, Oct 17, 2006 at 03:09:03PM +0100, Andrew STUBBS wrote: >> The expression parser/evaluator must use host types at some level. Does >> this not have similar horrors hidden away? If this can convert target >> types to host types (of at least the same precision) can the printf not >> be implemented with the same mapping somehow? > > Well, I suppose all we need to do is appropriate widening. We can pass > everything to the host code as LONGESTs and DOUBLESTs. > > Are you interested in working on this? If so, I can quickly pull > together a patch to add the printf backend that I was thinking of; > all it'll need is glue. I'm not really sure what you are suggesting I do exactly. What do you think ought to be done and where? How much effort do you think it will take? Like everyone else I don't have enormous amounts of time for projects I wasn't expecting. Assuming it isn't a big task I am certainly interested in getting it done right. Whatever that is, hopefully it does include the same target working the same on all hosts (or at least all the same features working, for some definition of 'work'). Andrew