From patchwork Tue Jun 3 12:53:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Benson X-Patchwork-Id: 1265 Received: (qmail 29524 invoked by alias); 3 Jun 2014 12:53:25 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 29458 invoked by uid 89); 3 Jun 2014 12:53:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 03 Jun 2014 12:53:23 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s53CrLXT031215 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 3 Jun 2014 08:53:21 -0400 Received: from blade.nx (ovpn-116-100.ams2.redhat.com [10.36.116.100]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s53CrKHm006702 for ; Tue, 3 Jun 2014 08:53:20 -0400 Received: by blade.nx (Postfix, from userid 1000) id 14D0426243C; Tue, 3 Jun 2014 13:53:19 +0100 (BST) Date: Tue, 3 Jun 2014 13:53:18 +0100 From: Gary Benson To: gdb-patches@sourceware.org Subject: [OB PATCH] Replace a call to cplus_demangle with one to gdb_demangle Message-ID: <20140603125318.GB330@blade.nx> MIME-Version: 1.0 Content-Disposition: inline X-IsSubscribed: yes Hi all, This patch replaces a call to cplus_demangle with a call to gdb_demangle. This change was included in an RFC from last March [1] but omitted from the eventual commit. Cheers, Gary --- [1] https://sourceware.org/ml/gdb-patches/2013-03/msg00235.html 2014-06-03 Gary Benson * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle. diff --git a/gdb/gnu-v2-abi.c b/gdb/gnu-v2-abi.c index 4a488be..3ca01c3 100644 --- a/gdb/gnu-v2-abi.c +++ b/gdb/gnu-v2-abi.c @@ -251,7 +251,7 @@ gnuv2_value_rtti_type (struct value *v, int *full, int *top, int *using_enc) return NULL; /* If we just skip the prefix, we get screwed by namespaces. */ - demangled_name=cplus_demangle(linkage_name,DMGL_PARAMS|DMGL_ANSI); + demangled_name=gdb_demangle(linkage_name,DMGL_PARAMS|DMGL_ANSI); p = strchr (demangled_name, ' '); if (p) *p = '\0';