Re: [patch] printf "%p" gdb internal error fix

Mark Kettenis
2006-09-10T19:31:37Z

> 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