From mboxrd@z Thu Jan 1 00:00:00 1970 From: LeakyStain To: gdb@sources.redhat.com Subject: Re: displaying wchar_t in gdb Date: Wed, 28 Nov 2001 15:38:00 -0000 Message-ID: <3C057546.17E07927@erols.com> References: X-SW-Source: 2001-11/msg00329.html Message-ID: <20011128153800.zHN9eANOPoai7zCQ46rLhmC1z-yZ9Mdoo3BzDwh0g5g@z> 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.