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: Wed, 19 May 2004 15:42:00 -0000 Message-id: <20040519154155.GA8567@nevyn.them.org> References: <20040518024700.GV10684@gnat.com> <20040518214712.GD4036@nevyn.them.org> <20040518222740.GZ10684@gnat.com> <20040518224131.GA6026@nevyn.them.org> <20040519153615.GD10684@gnat.com> X-SW-Source: 2004-05/msg00574.html On Wed, May 19, 2004 at 08:36:15AM -0700, Joel Brobecker wrote: > So let's go for that route. How about: > 1. I add the language-specific hook the way I designed it > in my last patch. > 2. Use that hook in main_name() when the debug info didn't provide > the name of the main procedure. > 3. Modify start_command to use main_name() instead of the language > hook. > > Would that work for you? That sounds good to me. Note that now you can avoid playing with xmalloc/xfree and just return the constant "main". -- Daniel Jacobowitz