Skip to content

Commit

Permalink
fix: 🐛 Fix bug that makes debugger access element -1 if no custom gat…
Browse files Browse the repository at this point in the history
…es are defined
  • Loading branch information
DRovara committed Sep 19, 2024
1 parent b38d998 commit 3285634
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/backend/dd/DDSimDebug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,9 @@ std::vector<std::string> getTargetVariables(DDSimulationState* ddsim,
if (ddsim->instructionTypes[i] == RETURN) {
break;
}
if (i == 0) {
break;
}
i--;
}

Expand Down

0 comments on commit 3285634

Please sign in to comment.