This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "codelite".
The branch, master has been updated
via b65da6fae6164cf2c5f4a5e5a933078f1286b8dd (commit)
from 5467088304e8cb6631c9971213193153b8be1ac6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceforge.net/p/codelite/codelitegit/ci/b65da6fae6164cf2c5f4a5e5a933078f1286b8dd
commit b65da6fae6164cf2c5f4a5e5a933078f1286b8dd
Author: Eran <era...@gm...>
Date: Sat Jan 18 00:29:03 2014 +0200
Added new SDK event: wxEVT_DBG_UI_TOGGLE_BREAKPOINT - sent when the user toggles a breakpoints (either by the mouse click or by the keyboard shortcut). A plugin
can intercept this event and apply it to its own custom debugger
diff --git a/Interfaces/plugin.h b/Interfaces/plugin.h
index 5d7c8c5..af1d1d5 100644
--- a/Interfaces/plugin.h
+++ b/Interfaces/plugin.h
@@ -567,16 +567,17 @@ enum MenuType {
// If a plugin wishes to override codelite's default debugger (gdb)
// it simply needs to connect the event and avoid calling 'event.Skip();
//----------------------------------------------------------------------
-#define wxEVT_DBG_UI_START_OR_CONT 3547 // Start the debugger or continue
-#define wxEVT_DBG_UI_STOP 3549 // Stop the debugger
-#define wxEVT_DBG_UI_STEP_IN 3550 // Step into function
-#define wxEVT_DBG_UI_STEP_OUT 3551 // Step out of current frame
-#define wxEVT_DBG_UI_NEXT 3552 // Next line
-#define wxEVT_DBG_UI_NEXT_INST 3553 // Next instruction
-#define wxEVT_DBG_UI_INTERRUPT 3554 // Interrupt the debugger execution
-#define wxEVT_DBG_UI_SHOW_CURSOR 3555 // Set the focus to the current debugger file/line
-#define wxEVT_DBG_UI_RESTART 3556 // Restart the debug session
-#define wxEVT_DBG_IS_RUNNING 3557 // Use evet.SetAnswer() method to reply
+#define wxEVT_DBG_UI_START_OR_CONT 3547 // Start the debugger or continue
+#define wxEVT_DBG_UI_STOP 3549 // Stop the debugger
+#define wxEVT_DBG_UI_STEP_IN 3550 // Step into function
+#define wxEVT_DBG_UI_STEP_OUT 3551 // Step out of current frame
+#define wxEVT_DBG_UI_NEXT 3552 // Next line
+#define wxEVT_DBG_UI_NEXT_INST 3553 // Next instruction
+#define wxEVT_DBG_UI_INTERRUPT 3554 // Interrupt the debugger execution
+#define wxEVT_DBG_UI_SHOW_CURSOR 3555 // Set the focus to the current debugger file/line
+#define wxEVT_DBG_UI_RESTART 3556 // Restart the debug session
+#define wxEVT_DBG_IS_RUNNING 3557 // Use evet.SetAnswer() method to reply
+#define wxEVT_DBG_UI_TOGGLE_BREAKPOINT 3558 // Toggle breakpoint. Use event.GetFileName() / event.GetInt() for the file:line
//------------------------------------------------------------------
//each plugin must implement this interface
diff --git a/LiteEditor.workspace b/LiteEditor.workspace
index 08385ee..9a367b2 100644
--- a/LiteEditor.workspace
+++ b/LiteEditor.workspace
@@ -44,7 +44,7 @@
<Project Name="Tweaks" Path="Tweaks/Tweaks.project" Active="No"/>
<Project Name="CMakePlugin" Path="CMakePlugin/CMakePlugin.project" Active="No"/>
<BuildMatrix>
- <WorkspaceConfiguration Name="Win Release Unicode" Selected="yes">
+ <WorkspaceConfiguration Name="Win Release Unicode" Selected="no">
<Project Name="abbreviation" ConfigName="WinReleaseUnicode"/>
<Project Name="CallGraph" ConfigName="WinReleaseUnicode"/>
<Project Name="CMakePlugin" ConfigName="WinReleaseUnicode"/>
@@ -79,7 +79,7 @@
<Project Name="wxsqlite3" ConfigName="WinReleaseUnicode"/>
<Project Name="ZoomNavigator" ConfigName="WinReleaseUnicode"/>
</WorkspaceConfiguration>
- <WorkspaceConfiguration Name="Win Debug Unicode" Selected="no">
+ <WorkspaceConfiguration Name="Win Debug Unicode" Selected="yes">
<Project Name="abbreviation" ConfigName="WinDebugUnicode"/>
<Project Name="CallGraph" ConfigName="WinDebugUnicode"/>
<Project Name="CMakePlugin" ConfigName="WinDebugUnicode"/>
diff --git a/LiteEditor/cl_editor.cpp b/LiteEditor/cl_editor.cpp
index 4d8f394..ceb55e1 100644
--- a/LiteEditor/cl_editor.cpp
+++ b/LiteEditor/cl_editor.cpp
@@ -3214,11 +3214,19 @@ void LEditor::DelBreakpoint(int lineno /*= -1*/)
void LEditor::ToggleBreakpoint(int lineno)
{
-// Coming from OnMarginClick() means that lineno comes from the mouse position, not necessarily the current line
+ // Coming from OnMarginClick() means that lineno comes from the mouse position, not necessarily the current line
if (lineno == -1) {
lineno = GetCurrentLine()+1;
}
+ // Does any of the plugins want to handle this?
+ clDebugEvent dbgEvent(wxEVT_DBG_UI_TOGGLE_BREAKPOINT);
+ dbgEvent.SetInt( lineno );
+ dbgEvent.SetFileName( GetFileName().GetFullPath() );
+ if ( EventNotifier::Get()->ProcessEvent( dbgEvent ) ) {
+ return;
+ }
+
const BreakpointInfo &bp = ManagerST::Get()->GetBreakpointsMgr()->GetBreakpoint(GetFileName().GetFullPath(), lineno);
if ( bp.IsNull() ) {
-----------------------------------------------------------------------
Summary of changes:
Interfaces/plugin.h | 21 +++++++++++----------
LiteEditor.workspace | 4 ++--
LiteEditor/cl_editor.cpp | 10 +++++++++-
3 files changed, 22 insertions(+), 13 deletions(-)
hooks/post-receive
--
codelite
|