From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9972 invoked by alias); 10 Sep 2006 22:00:32 -0000 Received: (qmail 9964 invoked by uid 22791); 10 Sep 2006 22:00:31 -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; Sun, 10 Sep 2006 22:00:30 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GMXLn-0001cc-MM for gdb-patches@sourceware.org; Sun, 10 Sep 2006 18:00:27 -0400 Date: Sun, 10 Sep 2006 22:00:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sourceware.org Subject: Re: [patch] printf "%p" gdb internal error fix Message-ID: <20060910220026.GA6115@nevyn.them.org> Mail-Followup-To: gdb-patches@sourceware.org References: <20060910172037.GA3886@host0.dyn.jankratochvil.net> <200609101931.k8AJVF4m026090@elgar.sibelius.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200609101931.k8AJVF4m026090@elgar.sibelius.xs4all.nl> User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-09/txt/msg00049.txt.bz2 On Sun, Sep 10, 2006 at 09:31:15PM +0200, Mark Kettenis wrote: > Hmm, this will not do the right thing when you try to print a 64-bit > pointer on a 32-bit host. True, though, neither will the rest of the printf code: case long_arg: { long val = value_as_long (val_args[i]); printf_filtered (current_substring, val); break; } None of it is written to use target types at present, only host types. It'd need even more surgery if you wanted it to, since current_substring gets passed to the host's printf. -- Daniel Jacobowitz CodeSourcery