From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4638 invoked by alias); 9 May 2014 10:09:24 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 4624 invoked by uid 89); 9 May 2014 10:09:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 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; Fri, 09 May 2014 10:09:22 +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 s49A9KWa029839 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 9 May 2014 06:09:21 -0400 Received: from blade.nx (ovpn-116-96.ams2.redhat.com [10.36.116.96]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s49A9Kqa006679 for ; Fri, 9 May 2014 06:09:20 -0400 Received: by blade.nx (Postfix, from userid 1000) id BCD4626234A; Fri, 9 May 2014 11:09:19 +0100 (BST) Date: Fri, 09 May 2014 10:09:00 -0000 From: Gary Benson To: gdb-patches@sourceware.org Subject: [PATCH 1/2] Demangler crash handler Message-ID: <20140509100919.GB4760@blade.nx> References: <20140509100656.GA4760@blade.nx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140509100656.GA4760@blade.nx> X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg00109.txt.bz2 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. [1] https://sourceware.org/ml/gdb-patches/2013-03/msg00235.html 2014-05-09 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';