This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC 1/6 -V2] Fix display of tabulation character for mingw hosts.


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]