Skip to content

Commit

Permalink
Fix bug in stack frame trimming.
Browse files Browse the repository at this point in the history
If inlining happened in a certain way, too much could be trimmed from
the bottom of the stack trace, because we would only include the first
entry with the last kept address, rather than all entries with that last
kept address.
  • Loading branch information
nnethercote committed Nov 20, 2021
1 parent ed200bf commit 5f5cfab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -808,10 +808,10 @@ fn finish(dhat: &mut Dhat) -> Option<Globals> {
next_ftbl_idx - 1
});
fs.push(ftbl_idx);
}

if Some(frame.ip()) == last_frame_ip_to_show {
break 'outer;
}
if Some(frame.ip()) == last_frame_ip_to_show {
break 'outer;
}
}

Expand Down

0 comments on commit 5f5cfab

Please sign in to comment.