]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
fix printing of Ada wide characters on ppc-aix
authorJoel Brobecker <brobecker@gnat.com>
Tue, 18 Jan 2011 17:03:57 +0000 (17:03 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Tue, 18 Jan 2011 17:03:57 +0000 (17:03 +0000)
commitf9be282007d4aba65e23d13eef5bec2e44834b88
tree1d424b0db6b95d6bd1f048399c306f159d1ab3e1
parent8a25bc6eb2bc532f96811d4070d6788e114507b9
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.
gdb/ChangeLog
gdb/ada-valprint.c