Skip to content

Commit fb0d3dc

Browse files
committed
Use fn_ptr from Miri
1 parent 893fbb2 commit fb0d3dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backtrace/miri.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ pub struct MiriFrame {
1313
pub filename: Box<[u8]>,
1414
pub lineno: u32,
1515
pub colno: u32,
16+
pub fn_ptr: *mut c_void,
1617
}
1718

1819
#[derive(Debug, Clone)]
@@ -36,7 +37,7 @@ impl Frame {
3637
}
3738

3839
pub fn symbol_address(&self) -> *mut c_void {
39-
self.addr
40+
self.inner.fn_ptr
4041
}
4142

4243
pub fn module_base_address(&self) -> Option<*mut c_void> {

0 commit comments

Comments
 (0)