From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31583 invoked by alias); 9 Aug 2013 18:56:15 -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 31524 invoked by uid 89); 9 Aug 2013 18:56:14 -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 18:56:13 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r79Iu4Zw008167 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 9 Aug 2013 14:56:04 -0400 Received: from host2.jankratochvil.net (ovpn-116-37.ams2.redhat.com [10.36.116.37]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r79Iu10X032742 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 9 Aug 2013 14:56:03 -0400 Date: Fri, 09 Aug 2013 18:56:00 -0000 From: Jan Kratochvil To: Shang Yu Cc: gdb@sourceware.org Subject: Re: user friendly symbol name Message-ID: <20130809185600.GA17841@host2.jankratochvil.net> References: <20130809102225.GA11181@host2.jankratochvil.net> 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/msg00055.txt.bz2 On Fri, 09 Aug 2013 19:58:32 +0200, Shang Yu wrote: > Thanks for reply . But how can I demangle the symbol name massively in > the output of disas command ? Many thanks ! They are demangled: (gdb) disas 'std::istream::get()' 0x0000003a4b07f252 <+34>: cmpb $0x0,0xf(%rsp) 0x0000003a4b07f257 <+39>: je 0x3a4b07f290 In some cases they are not: 0x0000003a4b07f24d <+29>: callq 0x3a4b05b3e0 <_ZNSi6sentryC1ERSib@plt> but that is a bug in the GDB demangling logic (aware of it...). Shell 'objdump -dC' will demangled it right: 3a4b07f24d: e8 8e c1 fd ff callq 3a4b05b3e0 Jan