src/gdb ChangeLog ada-valprint.c

brobecke@sourceware.org brobecke@sourceware.org
Tue Jan 18 16:39:00 GMT 2011


CVSROOT:	/cvs/src
Module name:	src
Changes by:	brobecke@sourceware.org	2011-01-18 16:39:00

Modified files:
	gdb            : ChangeLog ada-valprint.c 

Log message:
	fix printing of Ada wide characters on ppc-aix
	
	Same problem as before: We were downcasting the character value from
	int to unsigned char, which caused an overflow.  The reason why we did
	not see this problem before is probably related to the fact that
	we're using stabs on AIX and thus characters types are defined as
	a TYPE_CODE_INT (or TYPE_CODE_RANGE?).
	
	gdb/ChangeLog:
	
	* ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
	(ada_val_print_1): Likewise.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.12488&r2=1.12489
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ada-valprint.c.diff?cvsroot=src&r1=1.74&r2=1.75



More information about the Gdb-cvs mailing list