From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15336 invoked by alias); 6 May 2002 17:44:37 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 15295 invoked from network); 6 May 2002 17:44:35 -0000 Received: from unknown (HELO gash2.peakpeak.com) (207.174.178.17) by sources.redhat.com with SMTP; 6 May 2002 17:44:35 -0000 Received: from creche.cygnus.com (ta0201.peakpeak.com [204.144.244.201]) by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id LAA08815; Mon, 6 May 2002 11:44:23 -0600 Received: (from tromey@localhost) by creche.cygnus.com (8.9.3/8.9.3) id LAA15253; Mon, 6 May 2002 11:53:53 -0600 To: Gdb List Subject: question about method naming From: Tom Tromey Reply-To: tromey@redhat.com X-Attribution: Tom X-Zippy: Yow! I forgot my PAIL!! Date: Mon, 06 May 2002 10:44:00 -0000 Message-ID: <87u1pl6u33.fsf@creche.redhat.com> X-SW-Source: 2002-05/txt/msg00044.txt.bz2 I compiled the appended code with `gcj -g'. I'm using the trunk cvs gcj. Then I ran gdb on the program. If I type: b x.main gdb tells me that there is no such method. I tracked the problem down to linespec.c:find_methods(). Here we end up in the loop, and method_name for the 0th method is: (gdb) p method_name $27 = 0x83e9a52 "x.main(java.lang.String[])" So of course we fail to match this against "main". Is this a gdb bug or a gcj bug? Or just a disagreement? I'm guessing that method_name should not be fully qualified. Is that correct? Tom public class x { public static void main (String[] args) { char c = args[0].charAt(0); System.out.println(c); } }