From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10342 invoked by alias); 11 Jun 2004 17:49:16 -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 10335 invoked from network); 11 Jun 2004 17:49:16 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 11 Jun 2004 17:49:16 -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 i5BHnGi5013584 for ; Fri, 11 Jun 2004 13:49:16 -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 i5BHnF025525 for ; Fri, 11 Jun 2004 13:49:15 -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 i5BHnFtn025578; Fri, 11 Jun 2004 13:49:15 -0400 Received: from redhat.com (toocool.toronto.redhat.com [172.16.14.72]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 62F4C80019B; Fri, 11 Jun 2004 13:49:15 -0400 (EDT) Message-ID: <40C9F09B.7080908@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]: Java Inferior Call Take 2 References: <40A9264C.4060404@redhat.com> In-Reply-To: <40A9264C.4060404@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-06/txt/msg00272.txt.bz2 Ping. Jeff Johnston wrote: > This is the reworked java inferior call patch. My previous attempt > tried to modify the gdb v3 abi code to handle missing debug information > from gcj. After a couple of gcc patches from Andrew Haley, the > gnu-v3-abi.c code doesn't require any tampering. > > I had to enhance dwarf2read.c to handle the java vtable name (which is > vtable) and to modify C++-only code to handle java syntax for class names. > > I have included a test case. > > Ok to commit? > > -- Jeff J. > > 2004-05-17 Jeff Johnston > > * dwarf2read.c (typename_concat): Change prototype to accept dwarf2_cu > struct pointer as argument. Change function to use new argument to > determine language. If language is Java, use "." as separator, > otherwise, use "::". > (partial_die_parent_scope): Change comment to include java. Check > language to determine if Java "." or C++ "::" separator should be used. > (add_partial_symbol): Enhance tests for C++ to also test for Java. > (guess_structure_name): Ditto. > (read_subroutine_type): Ditto. > (new_symbol): Ditto. > (dwarf2_add_member_fn): Add check for Java when reading member name. > Java debug info includes full class name which must be stripped off. > (read_structure_type): Add Java vtable support. > (read_namespace): Add Java support. > * jv-exp.y (FuncStart): New pattern. > (MethodInvocation): Add support for simple function calls. Change > warning message for other forms of inferior call currently not > supported. > * valarith.c (value_subscript): Treat an array with upper-bound > of -1 as unknown size. > > gdb/testsuite/ChangeLog: > > 2004-05-17 Jeff Johnston > > * gdb.java/jprint.exp: New test for java inferior call. > * gdb.java/jprint.java: Ditto. >