debugger fixed when stop an execution running inside pause 07/21707/1
Cedric Delamarre [Mon, 8 Mar 2021 09:10:34 +0000 (10:10 +0100)]
Change-Id: I8346915fe6276a96f2a0e0082571c01beecbf2fd

scilab/modules/ast/src/cpp/ast/debugmanager.cpp

index f9828af..66f727e 100644 (file)
@@ -542,8 +542,18 @@ void DebuggerManager::internal_stop()
     // release the debugger thread
     ThreadManagement::SendDebuggerExecDoneSignal();
     // wait inside pause
-    pause();
-    //clean current seqexp
+    try
+    {
+        pause();
+    }
+    catch (const ast::InternalAbort& ia)
+    {
+        // can append when aborting an execution
+        // which is running inside a pause
+        interrupted = false;
+        throw ia;
+    }
+
     interrupted = false;
 }