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
On 03/31/2017 01:28 PM, Eli Zaretskii wrote:
>> From: Pedro Alves <palves@redhat.com>
>> Date: Fri, 31 Mar 2017 12:03:15 +0100
>>
>> New in v2:
>>
>> - Go through all ports and override wchar_t size/sign appropriately.
>
> 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,
Pedro Alves