From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17830 invoked by alias); 30 Oct 2002 19:26:58 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 17779 invoked from network); 30 Oct 2002 19:26:57 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 30 Oct 2002 19:26:57 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 186zQ2-0008Hk-00; Wed, 30 Oct 2002 14:26:26 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 186yV6-0006K9-00; Wed, 30 Oct 2002 14:27:36 -0500 Date: Wed, 30 Oct 2002 11:26:00 -0000 From: Daniel Jacobowitz To: Kris Warkentin Cc: gdb@sources.redhat.com Subject: Re: gnu-v3-abi.c: problems w/ virtual base class Message-ID: <20021030192736.GA24291@nevyn.them.org> Mail-Followup-To: Kris Warkentin , gdb@sources.redhat.com References: <120101c28037$3ddb3d10$d8020c0a@catdog> <20021030172051.GA27733@nevyn.them.org> <121101c2803a$005145e0$d8020c0a@catdog> <20021030173438.GA8741@nevyn.them.org> <122501c2803c$2e278450$d8020c0a@catdog> <123101c28044$f5386340$d8020c0a@catdog> <20021030190128.GA21129@nevyn.them.org> <128701c28049$34decda0$d8020c0a@catdog> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <128701c28049$34decda0$d8020c0a@catdog> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-10/txt/msg00214.txt.bz2 On Wed, Oct 30, 2002 at 02:18:58PM -0500, Kris Warkentin wrote: > > OK, that's the problem. What we should probably be doing in minsyms.c > > is checking for a valid v3 mangled name... > > Ah. That would probably be a fair bit of overhead to symbol loading though > if you're going to match every symbol name against some criteria. I suppose > we could optimize by never doing the check again once the abi is set to v3. > Is there an existing function to check it or should I roll my own? Also, I > didn't find any reference to gcc's mangling style in the manuals. Is it > documented or is it 'read the code'? The way this works is: - We only care if the symbol starts with _Z. Do it in the same place we check for _Z now, instead of the switch_to_cp_abi call. - You just want to call cplus_demangle; be sure to free the result if it returns non-NULL. (and yes, stop checking once the ABI is set to v3). -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer