I've some progress.... :lol:
0. I've added a DebuggerManager, to hold all debugger related stuff
1. I've extracted the Debug menu (should move the resource file thought). The code is moved in the DebuggerMenu class.
1.1. Some of the menu items work (start, stop, step, next, continue)
1.2. I've added submenu Debug->Active Debugger. I've added API calls to register/unregister debuggers. The menu items are radio items, and switching the active debugger works.
2. I've extracted the breakpoints dialog and edit breakpoints
3. I've move the code from DebuggerGDB::SyncEditor to DebuggerManager::SyncEditor
Here is the patch that shows the changes:
http://smrt.is-a-geek.org/codeblocks/dbg_refactor/dbg_refactor0001.patchParallel to the changes I make to CB, I modify my gdb_mi debugger plugin, so I can test if the changes are working.
The plugin can be found here: svn://smrt.is-a-geek.org/cb_gdb_mi .
The things that work: stepping and setting breakpoints at the beginning (before you have started the debugger).
Next on my TODO:
1. extracting the dbg toolbar
2. rewriting the watches window from scratch, using PropGrid control - if you know about a control that is more suitable for it, please tell me (I'm a beginner in wx programming)
Any feedback is welcome. :lol: