[patch] printf "%p" gdb internal error fix
Mark Kettenis
mark.kettenis@xs4all.nl
Sun Sep 10 19:31:00 GMT 2006
> 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
More information about the Gdb-patches
mailing list