This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb ChangeLog ada-valprint.c
- From: brobecke at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 18 Jan 2011 17:03:58 -0000
- Subject: src/gdb ChangeLog ada-valprint.c
CVSROOT: /cvs/src
Module name: src
Branch: gdb_7_2-branch
Changes by: brobecke@sourceware.org 2011-01-18 17:03:58
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&only_with_tag=gdb_7_2-branch&r1=1.11973.2.66&r2=1.11973.2.67
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ada-valprint.c.diff?cvsroot=src&only_with_tag=gdb_7_2-branch&r1=1.66.2.2&r2=1.66.2.3