From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4792 invoked by alias); 9 Aug 2013 10:22:38 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 4765 invoked by uid 89); 9 Aug 2013 10:22:37 -0000 X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RDNS_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.1 Received: from Unknown (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 09 Aug 2013 10:22:37 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r79AMTNU023098 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 9 Aug 2013 06:22:29 -0400 Received: from host2.jankratochvil.net (ovpn-116-37.ams2.redhat.com [10.36.116.37]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r79AMPPg021939 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 9 Aug 2013 06:22:28 -0400 Date: Fri, 09 Aug 2013 10:22:00 -0000 From: Jan Kratochvil To: Shang Yu Cc: gdb@sourceware.org Subject: Re: user friendly symbol name Message-ID: <20130809102225.GA11181@host2.jankratochvil.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2013-08/txt/msg00044.txt.bz2 On Fri, 09 Aug 2013 03:17:16 +0200, Shang Yu wrote: > How to display a user friendly symbol name in gdb ? For example , I > want gdb display the following symbol name _ZNSt14basic_iostreamIwSt > in its C++ equivalent format. Besides the other reply - in GDB you can: (gdb) set cp-abi gnu-v3 (gdb) set language c++ (gdb) maintenance demangle _ZNSt14basic_iostreamIwSt Can't demangle "_ZNSt14basic_iostreamIwSt" (gdb) maintenance demangle _ZNSt16nested_exceptionD2Ev std::nested_exception::~nested_exception() You may want to check the documentation why your symbol is not recognized: http://mentorembedded.github.io/cxx-abi/abi.html#mangling Jan