From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13735 invoked by alias); 20 Mar 2003 22:22:25 -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 13716 invoked from network); 20 Mar 2003 22:22:25 -0000 Received: from unknown (HELO smtp.inode.at) (62.99.194.4) by sources.redhat.com with SMTP; 20 Mar 2003 22:22:25 -0000 Received: from line-e-123.adsl-dynamic.inode.at ([62.99.165.123]:1039 helo=inode.at) by smtp.inode.at with esmtp (Exim 4.10) id 18w8Me-0004Uq-00; Thu, 20 Mar 2003 23:18:20 +0100 Message-ID: <3E7A3F99.3010703@inode.at> Date: Thu, 20 Mar 2003 22:22:00 -0000 From: David Ayers User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030210 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Jacobowitz CC: Andrew Cagney , 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> In-Reply-To: <20030320213945.GA17345@nevyn.them.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-03/txt/msg00443.txt.bz2 Hello, Please also keep in mind, that hopefully one day (now that the parser issue is being tackled in gcc) gcc will hopefully support ObjC++ code. (i.e. ObjC and C++ code in one file / member function / method.) I'm not sure how this would play into the mechanics of language specific demangeling functions and how these mechanics would decided which function to use, but I just wanted to make sure everyone is aware of this when thinking about it. Cheers, David Ayers Daniel Jacobowitz wrote: >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. >> >>Andrew >> >> >>