From: Eran I. <era...@gm...> - 2009-08-28 18:31:14
|
Thanks, for this. Patch applied in the SVN trunk On Wed, Aug 19, 2009 at 7:58 PM, Mattia Barbon <ma...@de...> wrote: > Eran Ifrah ha scritto: > > There is no attachment :) > > <shame>Now there is</shame>. > > Regards, > Mattia > > > On Wed, Aug 19, 2009 at 4:28 PM, Mattia Barbon <ma...@de... > > <mailto:ma...@de...>> wrote: > > > > Eran Ifrah ha scritto: > > > The best and probably the only way to do it is to add new events > > before > > > the debuggers starts / stops etc. > > > > > > To do this: > > > > > > 1) Add the new events to the enum in plugin.h (make sure you > comment > > > them properly > > > 2) Send the events from codelite to the plugins using the > > 'SendCmdEvent' > > > method located in globals.h > > > 3) Connect your plugin to thses events > > > 4) Increment the plugin interface version number found in > > > plugins_version.h file > > > > > > make sure you use the latest SVN trunk, since I added some events > > myself > > > The events should be sent from 2 locations: > > > 1) From Frame::OnQuickDebug - this method is called when using the > > > 'Debug -> Quick Debug' from the menu > > > 2) From Manager::DbgStart - this method is called when debugging a > > > codelite project > > > > > > Ofc, dont forget to send me the patch for the new events > > > > Patch attached: > > - adds 4 new events wxEVT_DEBUG_STARTING (sent before the > dbgr->Start), > > wxEVT_DEBUG_STARTED (sent after dbgr->Start), wxEVT_DEBUG_STOPPING > > (sent before dbgr->Stop), wxEVT_DEBUG_STOPPED (sent after > dbgr->Stop); > > if handled and not skipped, wxEVT_DEBUG_STARTING prevents the > debugger > > from starting > > - added a DebuggerStartupInfo struct sent as client data of > > wxEVT_DEBUG_STARTING and wxEVT_DEBUG_STARTED; it contains the > project > > name (when debugging a project) or the pid (when attaching to a > > running program) and a pointer to the debugger object > > > > sorry it took so long, but I got tangled in a different project... > > > > Regards, > > Mattia > > > > > On Mon, Jun 15, 2009 at 5:15 PM, Mattia Barbon <ma...@de... > > <mailto:ma...@de...> > > > <mailto:ma...@de... <mailto:ma...@de...>>> wrote: > > > > > > Hi again, > > > for my plugin, I need to run some commands before the debugger > > > starts and after it stops (to automate the launch of > > gdbserver). Is > > > there a way to do it? Would it be OK to add some more > > > events to the plugin notification interface (debuggger > starting, > > > debugger started, debugger stopped)? > > > > > > Thanks! > > > Mattia > > > > > > > > > ------------------------------------------------------------------------------ > > > Crystal Reports - New Free Runtime and 30 Day Trial > > > Check out the new simplified licensing option that enables > > unlimited > > > royalty-free distribution of the report engine for externally > > facing > > > server and web deployment. > > > http://p.sf.net/sfu/businessobjects > > > _______________________________________________ > > > Codelite-developers mailing list > > > Cod...@li... > > <mailto:Cod...@li...> > > > <mailto:Cod...@li... > > <mailto:Cod...@li...>> > > > > https://lists.sourceforge.net/lists/listinfo/codelite-developers > > > > > > > > > > > > > > > -- > > > Eran Ifrah > > > Cross platform, open source C++ IDE: http://www.codelite.org > > > > > > > > > > > > > -- > > Eran Ifrah > > Cross platform, open source C++ IDE: http://www.codelite.org > > > > -- Eran Ifrah Cross platform, open source C++ IDE: http://www.codelite.org |