Skip to content

Commit

Permalink
Fixed issue with functions not getting statistics printed
Browse files Browse the repository at this point in the history
  • Loading branch information
Emoun committed Sep 11, 2023
1 parent 86bd0c5 commit a2cc897
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dbgstack.cc
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ namespace patmos

void dbgstack_t::push(uword_t base, uword_t offset, uword_t target)
{
// The following (commented out) code is bugged, resulting in otherwise correct programs to not print
// statistics.
/*
if (!stack.empty()) {
// Check if the call is coming from the TOS.
if (!is_active_frame(stack.back())) {
Expand All @@ -145,6 +148,7 @@ namespace patmos
}
}
}
*/
// Create a new stack frame
stack.push_back( dbgstack_frame_t(sim, base, offset, target) );

Expand Down

0 comments on commit a2cc897

Please sign in to comment.