From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10377 invoked by alias); 17 Oct 2006 14:25:05 -0000 Received: (qmail 10352 invoked by uid 22791); 17 Oct 2006 14:25:04 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Tue, 17 Oct 2006 14:24:57 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GZpsB-0007yX-PB for gdb@sourceware.org; Tue, 17 Oct 2006 10:24:51 -0400 Date: Tue, 17 Oct 2006 14:25:00 -0000 From: Daniel Jacobowitz To: gdb@sourceware.org Subject: Re: GDB printf command Message-ID: <20061017142451.GA30620@nevyn.them.org> Mail-Followup-To: gdb@sourceware.org References: <4534C695.2050206@st.com> <20061017132426.GA28323@nevyn.them.org> <4534E3FF.9030505@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4534E3FF.9030505@st.com> User-Agent: Mutt/1.5.13 (2006-08-11) 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/msg00124.txt.bz2 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. -- Daniel Jacobowitz CodeSourcery