This is the mail archive of the gdb-cvs@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]

src/gdb ChangeLog ada-valprint.c


CVSROOT:	/cvs/src
Module name:	src
Changes by:	brobecke@sourceware.org	2011-01-13 23:01:22

Modified files:
	gdb            : ChangeLog ada-valprint.c 

Log message:
	[Ada] Fix printing of Wide_Wide_Strings
	
	This fixes the printing of Wide_Wide_String objects.  For instance,
	consider:
	
	My_WWS : Wide_Wide_String := " helo";
	
	Before this patch is applied, GDB prints:
	
	(gdb) print my_wws
	$1 = " ["00"]h["00"]e"
	
	gdb/ChangeLog:
	
	* ada-valprint.c (ada_emit_char): Remove strange code.
	Check that c is <= UCHAR_MAX before passing it to isascii.
	(char_at): Do not assume that TYPE_LEN is either 1 or 2.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.12475&r2=1.12476
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ada-valprint.c.diff?cvsroot=src&r1=1.72&r2=1.73


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