This is the mail archive of the gdb@sources.redhat.com 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: displaying wchar_t in gdb



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


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