From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10119 invoked by alias); 11 Jun 2004 17:49:05 -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 10108 invoked from network); 11 Jun 2004 17:49:05 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 11 Jun 2004 17:49:05 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i5BHn5i5013515 for ; Fri, 11 Jun 2004 13:49:05 -0400 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i5BHn4025463 for ; Fri, 11 Jun 2004 13:49:04 -0400 Received: from touchme.toronto.redhat.com (IDENT:postfix@touchme.toronto.redhat.com [172.16.14.9]) by pobox.toronto.redhat.com (8.12.8/8.12.8) with ESMTP id i5BHn4tn025570; Fri, 11 Jun 2004 13:49:04 -0400 Received: from redhat.com (toocool.toronto.redhat.com [172.16.14.72]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 3650280019B; Fri, 11 Jun 2004 13:49:04 -0400 (EDT) Message-ID: <40C9F090.3050303@redhat.com> Date: Fri, 11 Jun 2004 17:49:00 -0000 From: Jeff Johnston User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 MIME-Version: 1.0 To: Jeff Johnston Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA]: Make class_name_from_physname part of language vector References: <40A5583B.7030802@redhat.com> In-Reply-To: <40A5583B.7030802@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-06/txt/msg00271.txt.bz2 Ping. Jeff Johnston wrote: > The attached patch is a fix for Java support. Currently, dwarf2read.c > calls class_name_from_physname to get a class name. This code currently > resides in the cp-support.c file and is C++ specific as it parses > looking for "::". > > This patch changes it so the class_name_from_physname becomes a function > in the language definition. The current class_name_from_physname > routine is the C++ version and is renamed. > > Ok to commit? > > 2004-05-14 Jeff Johnston > > * language.h (struct_language_defn): Add new function pointer: > la_class_name_from_physname. Also add new prototype for > language_class_name_from_physname. > * language.c (language_class_name_from_physname): New function. > (unk_lang_class_name): Ditto. > (unknown_language_defn, auto_language_defn): Change > to add unk_lang_class_name function pointer for > la_class_name_from_physname. > (local_language_defn): Ditto. > * dwarf2read.c (guess_structure_name): Change to call > language_class_name_from_physname. > (determine_class_name): Ditto. > * cp-support.c (class_name_from_physname): Renamed. > (cp_class_name_from_physname): New name of function. > * cp-support.h: Ditto. > * c-lang.c (c_language_defn): Change to add NULL > for class_name_from_physname function pointer. > (cplus_language_defn): Change to add cp_class_name_from_physname. > * jv-lang.c (java_class_name_physname): New function. > (find_last_component): New static routine. > (java_language_defn): Add java_class_name_from_physname pointer. > * ada-lang.c (ada_language_defn): Change to add NULL > for class_name_from_physname function pointer. > * f-lang.c (f_language_defn): Ditto. > * m2-lang.c (m2_language_defn): Ditto. > * objc-lang.c (objc_language_defn): Ditto. > * p-lang.c (pascal_language_defn): Ditto. > * scm-lang.c (scm_language_defn): Ditto. > > >