From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7203 invoked by alias); 23 Apr 2002 05:58:38 -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 7196 invoked from network); 23 Apr 2002 05:58:36 -0000 Received: from unknown (HELO is.elta.co.il) (199.203.121.2) by sources.redhat.com with SMTP; 23 Apr 2002 05:58:36 -0000 Received: from is (is [199.203.121.2]) by is.elta.co.il (8.9.3/8.8.8) with SMTP id JAA23670; Tue, 23 Apr 2002 09:57:10 +0300 (IDT) Date: Mon, 22 Apr 2002 22:58:00 -0000 From: Eli Zaretskii X-Sender: eliz@is To: Tom Tromey cc: gdb@sources.redhat.com Subject: Re: confusion in the `b' command In-Reply-To: <87u1q3lb04.fsf@creche.redhat.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-04/txt/msg00379.txt.bz2 On 22 Apr 2002, Tom Tromey wrote: > >>>>> "Eli" == Eli Zaretskii writes: > > Eli> What version of GDB is that? Head? branch? released version? > > Latest cvs trunk gdb. (That was in my email, albeit buried a bit.) Yes, it was buried, sorry for not paying attention. It's probably a good idea to see if that isn't some regression due to latest changes. I have several versions of GDB going back as far as 4.18, but unfortunately I have no gcj installed anywhere. > >> * Second, that b 'x.main' would work anyway, since it is unambiguous. > > Eli> I'm not sure what you mean here. Do you mean that GDB shouldn't have > Eli> forced you to quote the string "x.main(java.lang.String[])"? > > I shouldn't even have to type `(java.lang.String[])' at all. > `b x.main' is unambiguous. There is only one `main' method in the > class `x'. I think the punctuation characters prevent that. But it could also be a bug or regression. One possible way to find out is to try this with commands that complete only on symbols (`b' completes on ``locations'', which could include file names and line numbers, so it's more complicated and thus more bug-prone). Sorry I can't do that myself, for the lack of gcj.