From: Eran I. <era...@gm...> - 2009-06-15 14:30:08
|
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 On Mon, Jun 15, 2009 at 5:15 PM, Mattia Barbon <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... > https://lists.sourceforge.net/lists/listinfo/codelite-developers > -- Eran Ifrah Cross platform, open source C++ IDE: http://www.codelite.org |