From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joel Brobecker To: gdb-patches@sources.redhat.com Subject: Re: [RFA/RFC] New command: ``start'' Date: Thu, 20 May 2004 22:12:00 -0000 Message-id: <20040520221214.GC10684@gnat.com> References: <20040518024700.GV10684@gnat.com> <20040518214712.GD4036@nevyn.them.org> <20040518222740.GZ10684@gnat.com> <20040518224131.GA6026@nevyn.them.org> <20040519153615.GD10684@gnat.com> <20040519154155.GA8567@nevyn.them.org> <20040520010145.GQ10684@gnat.com> <20040520134600.GA11705@nevyn.them.org> <20040520160259.GV10684@gnat.com> <20040520171404.GA3880@nevyn.them.org> X-SW-Source: 2004-05/msg00618.html > OK. So this has the property that I was hoping for; it won't return a > false positive for a non-Ada main program. That's correct. > This is fine with me. Let's see if anyone else objects to it. > > Since I don't know of any language other than Ada that will have a > fallback for this, I don't think it's worth inventing a lot of > machinery for it. I'm not especially interested in allowing a language > to be compiled out, either. OK, here is a new patch for the "start" command. I don't need to modify main_name() right now, so I left it out of this patch. When Ada support is activated, then the next step will be to add the new-executable notification, and add a call to the ada_main_name routine in main_name(). I am attaching a patch to symtab.c for illustration. 2004-05-20 Joel Brobecker * infcmd.c (kill_if_already_running): New function, extracted from run_command(). (run_command): Replace extracted code by call to kill_if_already_running(). (start_command): New function. (_initialize_infcmd): Add "start" command. The documentation for this new command (which has been already approved by Eli) is also attached, for easier reference. 2004-05-20 Joel Brobecker * gdb.texinfo (Starting): Document new start command. Tested on x86-linux. Thanks, -- Joel Attachment: infcmd.c.diff Description: Text document Attachment: start-doc.diff Description: Text document Attachment: symtab.c.diff Description: Text document