From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11272 invoked by alias); 28 Nov 2001 23:38:07 -0000 Mailing-List: contact gdb-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 11121 invoked from network); 28 Nov 2001 23:38:05 -0000 Received: from unknown (HELO smtp02.mrf.mail.rcn.net) (207.172.4.61) by hostedprojects.ges.redhat.com with SMTP; 28 Nov 2001 23:38:05 -0000 Received: from 66-44-23-101.s863.apx3.lnh.md.dialup.rcn.com ([66.44.23.101] helo=erols.com) by smtp02.mrf.mail.rcn.net with esmtp (Exim 3.33 #10) id 169EHC-0007ma-00 for gdb@sources.redhat.com; Wed, 28 Nov 2001 18:38:02 -0500 Message-ID: <3C057546.17E07927@erols.com> Date: Thu, 22 Nov 2001 09:19:00 -0000 From: LeakyStain X-Mailer: Mozilla 4.51 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: Re: displaying wchar_t in gdb References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2001-11/txt/msg00222.txt.bz2 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. 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.