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]

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


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.



Regards,
Jan

Attachment: gdb-printf-p.patch
Description: Text document


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