This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA/RFC] New command: ``start''
- From: Daniel Jacobowitz <drow at false dot org>
- To: Joel Brobecker <brobecker at gnat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 18 May 2004 17:47:12 -0400
- Subject: Re: [RFA/RFC] New command: ``start''
- References: <20040518024700.GV10684@gnat.com>
On Mon, May 17, 2004 at 07:47:00PM -0700, Joel Brobecker wrote:
> Hello,
>
> As briefly discussed on gdb@ and gdb-patches@, here is a first proposal
> for the addition of a new command: ``start''.
>
> I handled the language-dependent issue by adding a new method to the
> language vector. I returns a newly allocated string that tells GDB
> where to insert the breakpoint. I named it "main_program_name" because
> I would expect it to always return the name of a procedure. However,
> it can actually return any location expression. So a language could
> use a different approach and return something like "*0xdeadbeef" or
> "source.c:10" for instance.
We already have a function for this: main_name. Is it adequate for
Ada?
--
Daniel Jacobowitz