From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16943 invoked by alias); 4 Feb 2003 18:02:28 -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 16933 invoked from network); 4 Feb 2003 18:02:28 -0000 Received: from unknown (HELO mx1.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 4 Feb 2003 18:02:28 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h14I2Rf31689 for ; Tue, 4 Feb 2003 13:02:27 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h14I2Ra30129 for ; Tue, 4 Feb 2003 13:02:27 -0500 Received: from localhost.redhat.com (romulus-int.sfbay.redhat.com [172.16.27.46]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h14I2OR23861; Tue, 4 Feb 2003 13:02:25 -0500 Received: by localhost.redhat.com (Postfix, from userid 469) id 47861FF79; Tue, 4 Feb 2003 13:06:33 -0500 (EST) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15936.296.432592.13041@localhost.redhat.com> Date: Tue, 04 Feb 2003 18:02:00 -0000 To: tromey@redhat.com Cc: David Carlton , gdb-patches@sources.redhat.com Subject: Re: [rfa] allocate_objfile(NULL, 0) In-Reply-To: <87d6mv4aft.fsf@fleche.redhat.com> References: <15903.24492.446475.747803@localhost.redhat.com> <87d6mv4aft.fsf@fleche.redhat.com> X-SW-Source: 2003-02/txt/msg00122.txt.bz2 Tom Tromey writes: > >>>>> "David" == David Carlton writes: > > David> I'm no Java expert, but here's the situation as I understand > David> it. When evaluating Java code, sometimes you have to generate > David> new Java classes in an unpredictable manner. > > David> Alas, I don't know enough Java to be able to create a test > David> case. > > I don't know very much about this part of gdb. However, I can say > that in libgcj we create classes on the fly to represent arrays. Even > the simplest Java program will create at least one such array (for > String[]): > > public class t > { > public static void main(String[] args) > { > System.out.println(args.length); > } > } > > Then compile with: > > gcj --main=t -o t t.java > > > There is at least one longstanding gdb SEGV that happens when trying > to re-run a Java executable. This happens in most, but not every, gdb > session. > > Unfortunately I can't try your patch in the near future. > > Tom David, Tom, could a little gdb test be created and put in gdb.java? elena