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


Ada (the programming language) supports wide characters natively, and 
the GNU Ada compiler GNAT provides a patch to gdb. I haven't checked, 
but I bet it prints wide character strings properly. So looking at the
GNAT patch to gdb would be a place to start.

-- Stephe

Eli Zaretskii wrote:
> 
> On 26 Nov 2001, Klaus-Georg Adams wrote:
> 
> > 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'm not even sure this is feasible, taking the cross-debugging into
> consideration.  I guess it's possible in native debugging, assuming GDB
> and the debuggee use compatible libraries for wide character support,
> and support the same character sets.
> 
> If it _is_ possible and feasible, then a special format is probably the
> way to go.


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