[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdevelop/parts/debugger
From:       John Birch <jbb () kdevelop ! org>
Date:       2003-06-06 21:57:55
[Download RAW message or body]

CVS commit by jb: 

Add stop debugger to menu


  M +9 -3      debuggerpart.cpp   1.71
  M +1 -1      debuggerpart.h   1.23
  M +4 -0      kdevdebugger.rc   1.10


--- kdevelop/parts/debugger/debuggerpart.cpp  #1.70:1.71
@@ -169,4 +169,9 @@ DebuggerPart::DebuggerPart( QObject *par
                                "about variables, frame stack, and so on.") );
 
+    action = new KAction(i18n("Sto&p"), "stop", 0,
+                         this, SLOT(slotStop()),
+                         actionCollection(), "debug_stop");
+    action->setStatusText( i18n("Kills the executable and exits the debugger") );
+
     action = new KAction(i18n("Interrupt"), "player_pause", 0,
                          this, SLOT(slotPause()),
@@ -515,5 +521,5 @@ void DebuggerPart::startDebugger()
 }
 
-void DebuggerPart::stopDebugger()
+void DebuggerPart::slotStopDebugger()
 {
     controller->slotStopDebugger();
@@ -557,5 +563,5 @@ void DebuggerPart::stopDebugger()
 void DebuggerPart::projectClosed()
 {
-    stopDebugger();
+    slotStopDebugger();
 }
 
@@ -614,5 +620,5 @@ void DebuggerPart::slotStop(KDevPlugin* 
 
 //    if( !controller->stateIsOn( s_dbgNotStarted ) && !controller->stateIsOn( s_shuttingDown ) )
-        stopDebugger();
+        slotStopDebugger();
 }
 

--- kdevelop/parts/debugger/debuggerpart.h  #1.22:1.23
@@ -62,4 +62,5 @@ private slots:
     void slotExamineCore();
     void slotAttachProcess();
+    void slotStopDebugger();
     void slotStop(KDevPlugin* which = 0);
     void slotPause();
@@ -79,5 +80,4 @@ private slots:
 private:
     void startDebugger();
-    void stopDebugger();
     void setupController();
 

--- kdevelop/parts/debugger/kdevdebugger.rc  #1.9:1.10
@@ -5,4 +5,5 @@
   <text>&amp;Debug</text>
   <Action name="debug_run"/>
+  <Action name="debug_stop"/>
   <Action name="debug_pause"/>
   <Action name="debug_runtocursor"/>
@@ -38,4 +39,5 @@
   </enable>
   <disable>
+    <Action name="debug_stop"/>
     <Action name="debug_pause"/>
     <Action name="debug_runtocursor"/>
@@ -51,4 +53,5 @@
   <enable>
     <Action name="debug_run"/>
+    <Action name="debug_stop"/>
     <Action name="debug_runtocursor"/>
     <Action name="debug_stepover"/>
@@ -68,4 +71,5 @@
   <enable>
     <Action name="debug_pause"/>
+    <Action name="debug_stop"/>
   </enable>
   <disable>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic