From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24394 invoked by alias); 10 Mar 2004 16:04:11 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 24386 invoked from network); 10 Mar 2004 16:04:11 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 10 Mar 2004 16:04:11 -0000 Received: from drow by nevyn.them.org with local (Exim 4.30 #1 (Debian)) id 1B16Bm-00007q-Jv for ; Wed, 10 Mar 2004 11:04:10 -0500 Date: Fri, 19 Mar 2004 00:09:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Subject: Re: [RFA] minsyms.c: Fix switching to GNU v3 ABI Message-ID: <20040310160410.GA410@nevyn.them.org> Mail-Followup-To: gdb-patches@sources.redhat.com References: <20040310105709.GJ25204@cygbert.vinschen.de> <20040310150822.GA31014@nevyn.them.org> <20040310155450.GN25204@cygbert.vinschen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040310155450.GN25204@cygbert.vinschen.de> User-Agent: Mutt/1.5.1i X-SW-Source: 2004-03/txt/msg00232.txt.bz2 Message-ID: <20040319000900.X1u4S8wlrDzZhKg0mEeVRk2PjAyCejTfI9TgOgurD5c@z> On Wed, Mar 10, 2004 at 04:54:50PM +0100, Corinna Vinschen wrote: > On Mar 10 10:08, Daniel Jacobowitz wrote: > > This is absolutely not what should happen. > > > > prim_record_minimal_symbol_and_info: > > SYMBOL_SET_NAMES (msymbol, (char *)name, strlen (name), objfile); > > Oops. I didn't see that. > > > symbol_set_names: > > -> symbol_find_demangled_name > > if (gsymbol->language == language_cplus > > || gsymbol->language == language_auto) > > { > > demangled = > > cplus_demangle (mangled, DMGL_PARAMS | DMGL_ANSI); > > if (demangled != NULL) > > { > > gsymbol->language = language_cplus; > > return demangled; > > } > > } > > > > Please figure out why symbol_find_demangled_name has failed. It sounds > > It doesn't fail, at least not for the symbols which begin with "_Z". > > > to me like you are having a problem with leading underscores, if I > > remember my sh-elf-foo correctly. > > Could you tell more about that? I see a big bunch of symbols beginning > with "__Z". Is that what you mean? Yes, precisely. On sh-elf all symbols are prefixed with an underscore. I've been curious for a while about where, precisely, the leading underscore is supposed to get stripped before we demangle; apparently, the answer is "not early enough". I'm not sure how we want to handle it. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer