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: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: jan dot kratochvil at redhat dot com
- Cc: gdb-patches at sourceware dot org
- Date: Sun, 10 Sep 2006 21:31:15 +0200 (CEST)
- Subject: Re: [patch] printf "%p" gdb internal error fix
- References: <20060910172037.GA3886@host0.dyn.jankratochvil.net>
> 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
>
> Before 6.5 and after patching the regression:
> (gdb) printf "%p\n", (void *) 7
> 0x7
>
> Bugreport by the courtesy of Akira TAGOH <tagoh(at)redhat.com>.
>
> 2006-09-10 Jan Kratochvil <jan.kratochvil@redhat.com>
> * printcmd.c (printf_command): Handle forgotten "%p".
>
> 2006-09-10 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> * 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