summaryrefslogtreecommitdiffstats
path: root/scilab
diff options
context:
space:
mode:
authorCedric Delamarre <cedric.delamarre@esi-group.com>2021-03-08 10:10:34 +0100
committerCedric Delamarre <cedric.delamarre@esi-group.com>2021-03-08 10:10:34 +0100
commit13b6471b1c63b3329c7748c959adf731613fce91 (patch)
tree680dc1e9c07160db175876e3d55ab8f38563a1b3 /scilab
parentf4da2bb2595cf6462666f410cc29d85632ddaef0 (diff)
downloadscilab-13b6471b1c63b3329c7748c959adf731613fce91.zip
scilab-13b6471b1c63b3329c7748c959adf731613fce91.tar.gz
debugger fixed when stop an execution running inside pause
Change-Id: I8346915fe6276a96f2a0e0082571c01beecbf2fd
Diffstat (limited to 'scilab')
-rw-r--r--scilab/modules/ast/src/cpp/ast/debugmanager.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/scilab/modules/ast/src/cpp/ast/debugmanager.cpp b/scilab/modules/ast/src/cpp/ast/debugmanager.cpp
index f9828af..66f727e 100644
--- a/scilab/modules/ast/src/cpp/ast/debugmanager.cpp
+++ b/scilab/modules/ast/src/cpp/ast/debugmanager.cpp
@@ -542,8 +542,18 @@ void DebuggerManager::internal_stop()
542 // release the debugger thread 542 // release the debugger thread
543 ThreadManagement::SendDebuggerExecDoneSignal(); 543 ThreadManagement::SendDebuggerExecDoneSignal();
544 // wait inside pause 544 // wait inside pause
545 pause(); 545 try
546 //clean current seqexp 546 {
547 pause();
548 }
549 catch (const ast::InternalAbort& ia)
550 {
551 // can append when aborting an execution
552 // which is running inside a pause
553 interrupted = false;
554 throw ia;
555 }
556
547 interrupted = false; 557 interrupted = false;
548} 558}
549 559