From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2847 invoked by alias); 10 Sep 2006 19:31:37 -0000 Received: (qmail 2828 invoked by uid 22791); 10 Sep 2006 19:31:35 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 10 Sep 2006 19:31:34 +0000 Received: from elgar.sibelius.xs4all.nl (root@elgar.sibelius.xs4all.nl [192.168.0.2]) by sibelius.xs4all.nl (8.13.4/8.13.4) with ESMTP id k8AJVFpi011255; Sun, 10 Sep 2006 21:31:15 +0200 (CEST) Received: from elgar.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.13.8/8.13.6) with ESMTP id k8AJVFQ7013109; Sun, 10 Sep 2006 21:31:15 +0200 (CEST) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.13.8/8.13.8/Submit) id k8AJVF4m026090; Sun, 10 Sep 2006 21:31:15 +0200 (CEST) Date: Sun, 10 Sep 2006 19:31:00 -0000 Message-Id: <200609101931.k8AJVF4m026090@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: jan.kratochvil@redhat.com CC: gdb-patches@sourceware.org In-reply-to: <20060910172037.GA3886@host0.dyn.jankratochvil.net> (message from Jan Kratochvil on Sun, 10 Sep 2006 19:20:37 +0200) Subject: Re: [patch] printf "%p" gdb internal error fix References: <20060910172037.GA3886@host0.dyn.jankratochvil.net> 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/msg00048.txt.bz2 > Date: Sun, 10 Sep 2006 19:20:37 +0200 > From: Jan Kratochvil > > Hi, > > (gdb) printf "%p\n", (void *) 7 > internal error in printf_command > > Before 6.5 and after patching the regression: > (gdb) printf "%p\n", (void *) 7 > 0x7 > > Bugreport by the courtesy of Akira TAGOH . > > 2006-09-10 Jan Kratochvil > * printcmd.c (printf_command): Handle forgotten "%p". > > 2006-09-10 Jan Kratochvil > > * gdb.base/display.exp: New test of `printf' "%p" formatting. Hmm, this will not do the right thing when you try to print a 64-bit pointer on a 32-bit host. Mark