This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] printf "%p" gdb internal error fix
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: mark dot kettenis at xs4all dot nl, jan dot kratochvil at redhat dot com, gdb-patches at sourceware dot org
- Date: Tue, 04 Sep 2007 23:43:14 +0300
- Subject: Re: [patch] printf "%p" gdb internal error fix
- References: <20060910172037.GA3886@host0.dyn.jankratochvil.net> <200609101931.k8AJVF4m026090@elgar.sibelius.xs4all.nl> <20070904141926.GA27477@caradoc.them.org>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Tue, 4 Sep 2007 10:19:26 -0400
> From: Daniel Jacobowitz <drow@false.org>
> Cc: jan.kratochvil@redhat.com, gdb-patches@sourceware.org
>
> On Sun, Sep 10, 2006 at 09:31:15PM +0200, Mark Kettenis wrote:
> > > Date: Sun, 10 Sep 2006 19:20:37 +0200
> > > From: Jan Kratochvil <jan.kratochvil@redhat.com>
> > >
> > > Hi,
> > >
> > > (gdb) printf "%p\n", (void *) 7
> > > internal error in printf_command
>
> > Hmm, this will not do the right thing when you try to print a 64-bit
> > pointer on a 32-bit host.
>
> Better late than never...
>
> Here is a patch for %p which does not rely on the size of a host
> pointer.
Thanks, but what about a companion patch for the manual?