From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8437 invoked by alias); 7 Apr 2004 07:40:31 -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 8370 invoked from network); 7 Apr 2004 07:40:20 -0000 Received: from unknown (HELO takamaka.act-europe.fr) (142.179.108.108) by sources.redhat.com with SMTP; 7 Apr 2004 07:40:20 -0000 Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 0D35547D62; Wed, 7 Apr 2004 00:40:19 -0700 (PDT) Date: Wed, 07 Apr 2004 07:40:00 -0000 From: Joel Brobecker To: Andrew Cagney Cc: gdb@sources.redhat.com Subject: Re: Proposal: New command "begin" Message-ID: <20040407074018.GX871@gnat.com> References: <20040401203716.GX888@gnat.com> <407323E3.6010801@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <407323E3.6010801@gnu.org> User-Agent: Mutt/1.4i X-SW-Source: 2004-04/txt/msg00052.txt.bz2 > - I think GDB's current source-and-line, should be initialized to > "main", as defined by the language. That way operations such as: > $ gdb java-program > (gdb) break > Breakpoint 1 at foo.java:14 Foo::Main(...) > (gdb) run > Hit breakpoint 1 foo.java:14 > (gdb) > work. Hmmm, could be nice. > - Perhaphs a GDB variable ($main?) that points to the program entry point. (frown) I am not too keen on this one. > - And yes, some sort of command to perform a "runto_main". It's a > sufficiently standard GUI operation to justify its presence. > > I'm just not sure about "begin" as a good choice of command name - > begin goes better with end, and that's a compound command terminator. I like "begin", but I'm not that attached to this name. If we can agree on a better command name, I'll take care of sending an implementation plan on gdb-patches. > Is this mainly for GUI, or the user? Both, actually. We have a button for it in our GUI, but I use it all the time, and never use a GUI. -- Joel