From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17926 invoked by alias); 22 May 2014 10:37:38 -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 17910 invoked by uid 89); 22 May 2014 10:37:36 -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; Thu, 22 May 2014 10:37:34 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s4MAbPC4028131 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 22 May 2014 06:37:25 -0400 Received: from blade.nx (ovpn-116-100.ams2.redhat.com [10.36.116.100]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s4MAbOBo032046; Thu, 22 May 2014 06:37:24 -0400 Received: by blade.nx (Postfix, from userid 1000) id 56FEC262413; Thu, 22 May 2014 11:37:23 +0100 (BST) Date: Thu, 22 May 2014 10:37:00 -0000 From: Gary Benson To: Pedro Alves Cc: Eli Zaretskii , gdb-patches@sourceware.org, aburgess@broadcom.com, xdje42@gmail.com, fw@deneb.enyo.de, mark.kettenis@xs4all.nl, tromey@redhat.com Subject: Re: [PATCH 2/2 v2] Demangler crash handler Message-ID: <20140522103723.GA15598@blade.nx> References: <20140519114801.GA31140@blade.nx> <83iop1dd8e.fsf@gnu.org> <20140519154822.GA20315@blade.nx> <8361l1d7yx.fsf@gnu.org> <20140519190530.GA22506@blade.nx> <537A6C81.5040203@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <537A6C81.5040203@redhat.com> X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg00533.txt.bz2 Pedro Alves wrote: > Wouldn't a new "set debug demangle on" option, that would make > GDB output: > > (gdb) bt / whatever-gdb-command-that-triggers-demangling > demangling _ZN2CV1mEi ... CV::m(int) > demangling _Zwhatever ... > > be just as helpful, and, even potentially be helpful to debug > scenarios where GDB/libiberty might get the demangling wrong, > but not cause a crash? It would be as helpful for obtaining the symbol, although you would get a lot more output (hundreds of thousands/millions of lines vs one line). It would not help the user to debug their program because GDB would still crash. Thanks, Gary -- http://gbenson.net/