This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Proposal: New command "begin"
- From: Joel Brobecker <brobecker at gnat dot com>
- To: Andrew Cagney <cagney at gnu dot org>
- Cc: gdb at sources dot redhat dot com
- Date: Wed, 7 Apr 2004 00:40:19 -0700
- Subject: Re: Proposal: New command "begin"
- References: <20040401203716.GX888@gnat.com> <407323E3.6010801@gnu.org>
> - 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