[PATCH v2 2/2] Teach GDB that wchar_t is a built-in type in C++ mode
Eli Zaretskii
eliz@gnu.org
Fri Mar 31 13:00:00 GMT 2017
> Cc: gdb-patches@sourceware.org
> From: Pedro Alves <palves@redhat.com>
> Date: Fri, 31 Mar 2017 13:38:44 +0100
>
> > I think go32 needs the same treatment as Windows, since its system
> > headers say
> >
> > typedef unsigned short wchar_t;
> >
>
> Ah, yes, missed that one. Consider this added to
> i386-tdep.c:i386_go32_init_abi:
>
> set_gdbarch_wchar_bit (gdbarch, 16);
> set_gdbarch_wchar_signed (gdbarch, 0);
Thanks!
More information about the Gdb-patches
mailing list