This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]