From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Jacobowitz To: Joel Brobecker Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA/RFC] New command: ``start'' Date: Tue, 18 May 2004 21:47:00 -0000 Message-id: <20040518214712.GD4036@nevyn.them.org> References: <20040518024700.GV10684@gnat.com> X-SW-Source: 2004-05/msg00543.html 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