[RFC 1/6 -V2] Fix display of tabulation character for mingw hosts.
Tom Tromey
tromey@redhat.com
Wed Nov 6 21:24:00 GMT 2013
>>>>> "Pierre" == Pierre Muller <pierre.muller@ics-cnrs.unistra.fr> writes:
Pierre> 2013-10-01 Pierre Muller <muller@sourceware.org>
Pierre> Fix display of tabulation character for MinGW hosts.
Pierre> * gdb_wchar.h (gdb_iswprint): Declare as external function
Pierre> if __MINGW32__ macro is set.
Pierre> (HAVE_MINGW_GDB_ISWPRINT): New macro, declared only for
Pierre> MinGW hosts using wide characters.
Pierre> * mingw-hdep.c (gdb_iswprint): New function.
Pierre> Implemented only if HAVE_MINGW_GDB_ISWPRINT macro is defined.
If this is just for working around one mingw bug in one spot in gdb, I
think on the whole it would be simpler to just check for \t directly in
print_wchar. I think with a short comment it will be simpler in the end
than a new macro and a new host-specific function.
Tom
More information about the Gdb-patches
mailing list