From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7495 invoked by alias); 20 Mar 2003 22:13:44 -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 7485 invoked from network); 20 Mar 2003 22:13:44 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 20 Mar 2003 22:13:44 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 34E462B11; Thu, 20 Mar 2003 17:13:40 -0500 (EST) Message-ID: <3E7A3D14.1020100@redhat.com> Date: Thu, 20 Mar 2003 22:13:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Jacobowitz Cc: Adam Fedor , GDB Patches Subject: Re: [RFA] Compile objc-lang.c, objc-exp.tab.c [1/5] References: <3E16093D.3070907@doc.com> <3E7A3226.9040904@redhat.com> <20030320213945.GA17345@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-03/txt/msg00441.txt.bz2 > Not without some substantial thought. We use cplus_demangle in a lot > of places where we don't even know what the language is supposed to be > - for minsyms, during lookups, et cetera. > > Certainly it needs to be thought about. At least objc's mangling is > probably not entirely ambiguous with C++/Java's? I don't know. > > On Thu, Mar 20, 2003 at 04:27:02PM -0500, Andrew Cagney wrote: > >> Daniel, >> >> Would it be possible to make the cplus_demangle() method part of the >> language vector? That way code like the patch below could be reduced to: >> >> /* Return demangled language symbol, or NULL. */ >> language_demangle (current_language, arg); >> >> This would in turn allow Adam to just add an equivalent objc_demangle() >> method to the objc language vector, and hence eliminate the need to >> always link in objc-lang.c. As well as then? The places where objc is adding calls to the demangler the language is known. Andrew