summaryrefslogtreecommitdiffstats
path: root/scilab
diff options
context:
space:
mode:
authorCedric Delamarre <cedric.delamarre@esi-group.com>2021-03-03 15:48:29 +0100
committerCedric Delamarre <cedric.delamarre@esi-group.com>2021-03-03 15:48:29 +0100
commitf4da2bb2595cf6462666f410cc29d85632ddaef0 (patch)
treeb3709f946799b0bab5e27f1e5be337cda18d7fe5 /scilab
parentbe5a3bb926956b0a7ec78d35c25284d3689454bc (diff)
downloadscilab-f4da2bb2595cf6462666f410cc29d85632ddaef0.zip
scilab-f4da2bb2595cf6462666f410cc29d85632ddaef0.tar.gz
callstack generation fixed
Change-Id: I644038d8e694450e10d28bd9cf736f46f9e0f5a7
Diffstat (limited to 'scilab')
-rw-r--r--scilab/modules/ast/src/cpp/ast/debugmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scilab/modules/ast/src/cpp/ast/debugmanager.cpp b/scilab/modules/ast/src/cpp/ast/debugmanager.cpp
index 7180361..f9828af 100644
--- a/scilab/modules/ast/src/cpp/ast/debugmanager.cpp
+++ b/scilab/modules/ast/src/cpp/ast/debugmanager.cpp
@@ -381,7 +381,7 @@ void DebuggerManager::generateCallStack()
381 row.functionName = tmp; 381 row.functionName = tmp;
382 FREE(tmp); 382 FREE(tmp);
383 row.functionLine = it_line->m_line - 1; 383 row.functionLine = it_line->m_line - 1;
384 if(callstackAddFile(&row, *it_name->m_file_name)) 384 if(it_name->m_file_name && callstackAddFile(&row, *it_name->m_file_name))
385 { 385 {
386 row.fileLine = it_line->m_line; 386 row.fileLine = it_line->m_line;
387 row.functionLine = -1; 387 row.functionLine = -1;