[PATCH/WIP] C/C++ wchar_t/Unicode printing support

Eli Zaretskii eliz@gnu.org
Fri Jan 16 16:40:00 GMT 2009


> Cc: Julian Brown <julian@codesourcery.com>, gdb-patches@sourceware.org
> From: Tom Tromey <tromey@redhat.com>
> Date: Fri, 16 Jan 2009 09:15:39 -0700
> 
> >>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> + #ifndef GDB_DEFAULT_TARGET_WIDE_CHARSET
> >> + #define GDB_DEFAULT_TARGET_WIDE_CHARSET "UTF-32"
> >> + #endif
> >> + 
> >> + #ifndef GDB_INTERNAL_CODESET
> >> + #define GDB_INTERNAL_CODESET "UCS-4LE"
> >> + #endif
> 
> Eli> Why are these the defaults? because of what GNU/Linux (i.e. glibc)
> Eli> does, or for some other reason?  If the former, shouldn't this be
> Eli> autoconfigured?
> 
> I don't think there is a way to auto-configure the target wide
> charset.

Then let's put this in defs.h, with suitable defaults for at least the
popular platforms.



More information about the Gdb-patches mailing list