From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9401 invoked by alias); 20 Aug 2007 17:49:34 -0000 Received: (qmail 9336 invoked by uid 22791); 20 Aug 2007 17:49:33 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 20 Aug 2007 17:49:23 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 5B611980C1; Mon, 20 Aug 2007 17:49:23 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 39FBC980BF; Mon, 20 Aug 2007 17:49:22 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1INBNQ-0003Gt-7f; Mon, 20 Aug 2007 13:49:20 -0400 Date: Mon, 20 Aug 2007 17:49:00 -0000 From: Daniel Jacobowitz To: Andrew STUBBS Cc: GDB List Subject: Re: C++ Typedefs and symbol tables Message-ID: <20070820174920.GA12384@caradoc.them.org> Mail-Followup-To: Andrew STUBBS , GDB List References: <46C9CB12.5000004@st.com> <20070820171803.GA11056@caradoc.them.org> <46C9D0E1.5080509@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46C9D0E1.5080509@st.com> User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes 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 X-SW-Source: 2007-08/txt/msg00140.txt.bz2 On Mon, Aug 20, 2007 at 06:35:29PM +0100, Andrew STUBBS wrote: > Daniel Jacobowitz wrote: > > Check whether you are ending up with a search based on the function's > > symbol or minsym. The mangled name always uses the canonical type > > name (for obvious ABI reasons). > > Symbol or minsym? Sorry, I'm not at all familiar with this area of the > debugger. Symbols come from .debug_info and have type information. minsyms come from the ELF .symtab section, and do not. > > Yes, but it's a lot of work. We can not currently canonicalize > > anything during lookup because we do not canonicalize during symbol > > reading; and just turning that on slows things down considerably. The > > cp-names.y parser was intended for exactly this. > > Surely converting the (typically) 2-3 typenames in a signature, such that they > match the canonical form used by the ABI, would not take much time, would it? 2-3 typenames is not typical, in C++ programs. It added around 30% time in my testing. -- Daniel Jacobowitz CodeSourcery