From mboxrd@z Thu Jan 1 00:00:00 1970 From: Klaus-Georg Adams To: Eli Zaretskii Cc: gdb@sources.redhat.com Subject: Re: displaying wchar_t in gdb Date: Mon, 26 Nov 2001 01:59:00 -0000 Message-id: References: X-SW-Source: 2001-11/msg00255.html Eli Zaretskii 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17364 invoked by alias); 26 Nov 2001 09:59:01 -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 17320 invoked from network); 26 Nov 2001 09:58:56 -0000 Received: from unknown (HELO smtpde02.sap-ag.de) (194.39.131.53) by sourceware.cygnus.com with SMTP; 26 Nov 2001 09:58:56 -0000 Received: from sap-ag.de (smtpde02) by smtpde02.sap-ag.de (out) with ESMTP id LAA27362; Mon, 26 Nov 2001 11:01:56 +0100 (MEZ) To: Eli Zaretskii Subject: Re: displaying wchar_t in gdb cc: gdb@sources.redhat.com References: From: Klaus-Georg Adams Date: Tue, 13 Nov 2001 21:28:00 -0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SAP: out X-SAP: out X-SW-Source: 2001-11/txt/msg00148.txt.bz2 Message-ID: <20011113212800.bifwfWFhVzLa27yD7XmtjtektTgrF8n3sQ6hzFL_--E@z> Eli Zaretskii 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