This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2 2/2] Teach GDB that wchar_t is a built-in type in C++ mode
> 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!