summaryrefslogtreecommitdiffstats
path: root/scilab
diff options
context:
space:
mode:
authorCedric Delamarre <cdl@esi-group.com>2020-11-18 14:38:23 +0100
committerAntoine ELIAS <antoine.elias@esi-group.com>2020-11-23 15:49:27 +0100
commitf22ae52e6421ebe598b338a3ef95f417915cb9ee (patch)
tree20d3413f880d07f891e848de55162cf34ff6fb64 /scilab
parentbb5564fa32682509748445e555580c85e795cc25 (diff)
downloadscilab-f22ae52e6421ebe598b338a3ef95f417915cb9ee.zip
scilab-f22ae52e6421ebe598b338a3ef95f417915cb9ee.tar.gz
debugger fixed, where entry have not always a file name.
Change-Id: I1abef250955919c0eebcea28f374665952d760ae
Diffstat (limited to 'scilab')
-rw-r--r--scilab/modules/ast/src/cpp/ast/debuggervisitor.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/scilab/modules/ast/src/cpp/ast/debuggervisitor.cpp b/scilab/modules/ast/src/cpp/ast/debuggervisitor.cpp
index fffeef8..38d67da 100644
--- a/scilab/modules/ast/src/cpp/ast/debuggervisitor.cpp
+++ b/scilab/modules/ast/src/cpp/ast/debuggervisitor.cpp
@@ -477,6 +477,11 @@ bool getMacroSourceFile(std::string* filename)
477 return false; 477 return false;
478 } 478 }
479 479
480 if(lWhereAmI.back().m_file_name == nullptr)
481 {
482 return false;
483 }
484
480 std::string file = scilab::UTF8::toUTF8(*lWhereAmI.back().m_file_name); 485 std::string file = scilab::UTF8::toUTF8(*lWhereAmI.back().m_file_name);
481 if (file.rfind(".bin") != std::string::npos) 486 if (file.rfind(".bin") != std::string::npos)
482 { 487 {
@@ -494,4 +499,4 @@ bool getMacroSourceFile(std::string* filename)
494 } 499 }
495 500
496 return true; 501 return true;
497} \ No newline at end of file 502}