This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: displaying wchar_t in gdb
- From: Klaus-Georg Adams <Klaus-Georg dot Adams at sap dot com>
- To: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Cc: gdb at sources dot redhat dot com
- Date: 26 Nov 2001 11:59:35 +0100
- Subject: Re: displaying wchar_t in gdb
- References: <Pine.SUN.3.91.1011126112758.11497B-100000@is>
Eli Zaretskii <eliz@is.elta.co.il> writes:
> On Mon, 26 Nov 2001, Klaus-Georg Adams wrote:
>
> > I am working on a large project in C++ which works entirely with wide
> > strings and streams. Is there a way to display wchar_t in gdb similar
> > to narrow strings?
>
> The usual technique is to have in the application a function which can
> print such strings, and then call it from GDB using the "call" command.
What would be a strategy to implement this natively in gdb? Can you
tell inside gdb if we are working with wchar_t? Should there be a
separate format for this?
I'd be willing to explore (and maybe implement) this if somebody can
set me on the right track...
Thanks, kga