From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15983 invoked by alias); 22 Apr 2002 19:37:39 -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 15959 invoked from network); 22 Apr 2002 19:37:35 -0000 Received: from unknown (HELO gash2.peakpeak.com) (207.174.178.17) by sources.redhat.com with SMTP; 22 Apr 2002 19:37:35 -0000 Received: from creche.cygnus.com (ta0203.peakpeak.com [204.144.244.203]) by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id NAA04728; Mon, 22 Apr 2002 13:37:29 -0600 Received: (from tromey@localhost) by creche.cygnus.com (8.9.3/8.9.3) id NAA25064; Mon, 22 Apr 2002 13:43:11 -0600 To: Gdb List Subject: confusion in the `b' command From: Tom Tromey Reply-To: tromey@redhat.com X-Attribution: Tom X-Zippy: Now I'm having INSIPID THOUGHTS about the beautiful, round wives of HOLLYWOOD MOVIE MOGULS encased in PLEXIGLASS CARS and being approached by SMALL BOYS selling FRUIT.. Date: Mon, 22 Apr 2002 12:37:00 -0000 Message-ID: <87d6wrmsdt.fsf@creche.redhat.com> X-SW-Source: 2002-04/txt/msg00366.txt.bz2 I'm using x86 Red Hat Linux 6.2. Compile the appended java program (probably any program will do) like this: gcj --main=x -g -o x x.java Now debug it with the latest cvs trunk gdb: gdb -nw ./x Now try to set a breakpoint like this: b 'x.main gdb just beeps at me. So close the quotes and press enter: (gdb) b 'x.main' the class x does not have any method named main Hint: try 'x.main' or 'x.main' (Note leading single quote.) Now try again: b 'x.main I get: (gdb) b 'x.main(java.lang.String[])' I think this must be a bug. I expected: * First, that TAB would work correctly the first time. * Second, that b 'x.main' would work anyway, since it is unambiguous. (I only found the first bug because gdb has basically been forcing me to hit TAB all along...) Tom import java.net.*; public class x { public static void main (String[] args) throws Throwable { String x = "core:/zardoz.properties"; URL u = new URL (x); System.out.println (u.getFile ()); } }