ide/Debugger: Calling CleanUp() from GdbExit()
authorJerome St-Louis <jerome@ecere.com>
Sat, 3 May 2014 23:21:11 +0000 (19:21 -0400)
committerJerome St-Louis <jerome@ecere.com>
Sat, 3 May 2014 23:21:11 +0000 (19:21 -0400)
- Ensuring a Debug Stop is as Clean as a new IDE
- The debugger would previously not release its hold on the code editor after being stopped

ide/src/debugger/Debugger.ec

index e129fa3..af5a9eb 100644 (file)
@@ -2630,7 +2630,6 @@ class Debugger
       }
       gdbTimer.Stop();
       _ChangeState(terminated); // this state change seems to be superfluous, is it safety for something?
-      prjConfig = null;
       needReset = false;
 
       if(ide.workspace)
@@ -2644,8 +2643,6 @@ class Debugger
          bpRunToCursor.Reset();
 
       ide.outputView.debugBox.Logf($"Debugging stopped\n");
-      ClearBreakDisplay();
-      ide.Update(null);
 
 #if defined(__unix__)
       if(!usingValgrind && FileExists(progFifoPath)) //fileCreated)
@@ -2664,6 +2661,9 @@ class Debugger
          rmdir(progFifoDir);
       }
 #endif
+
+      CleanUp();
+      ide.Update(null);
    }
 
    bool WatchesLinkCodeEditor()