Change target-wide-charset to UTF-16 on ppc-aix.
authorJoel Brobecker <brobecker@gnat.com>
Tue, 23 Oct 2012 15:37:21 +0000 (15:37 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Tue, 23 Oct 2012 15:37:21 +0000 (15:37 +0000)
commit38a69d0a4d05b7fb52902a3c9bd2360d7191af3b
treef2d01f39d3744efba2f950d7aa25df8a2a179a90
parent83ab93c6eaf21fb4ee7b50de90f2837c20a55bd5
Change target-wide-charset to UTF-16 on ppc-aix.

On ppc-aix, type wchar_t is 2 bytes long, so override the default
target-wide-charset (UTF-32) with UTF-16. This allows us to print
wide characters correctly.

gdb/ChangeLog:

        * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
        (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
gdb/ChangeLog
gdb/rs6000-aix-tdep.c