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

Mark Kettenis mark.kettenis@xs4all.nl
Fri Jan 16 16:57:00 GMT 2009


> Date: Fri, 16 Jan 2009 18:39:23 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> 
> > 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.

For the target wide character set, the gdbarch vector is probably the
proper place.



More information about the Gdb-patches mailing list