Skip to content

Commit

Permalink
Obey the bool from the trace visitor under Miri (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
saethlin committed Aug 30, 2022
1 parent bd7d3b2 commit ebc9a85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/backtrace/miri.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ unsafe fn trace_unsynchronized<F: FnMut(&super::Frame) -> bool>(mut cb: F) {

for ptr in frames.iter() {
let frame = resolve_addr(*ptr as *mut c_void);
cb(&super::Frame { inner: frame });
if !cb(&super::Frame { inner: frame }) {
return;
}
}
}

0 comments on commit ebc9a85

Please sign in to comment.