1
Fork 0

Print inlined functions on Windows

This commit is contained in:
John Kåre Alsaker 2017-11-15 18:01:09 +01:00
parent a0a9007f8d
commit 634f8cc06a
10 changed files with 62 additions and 50 deletions

View file

@ -41,6 +41,8 @@ pub struct Frame {
pub exact_position: *const u8,
/// Address of the enclosing function.
pub symbol_addr: *const u8,
/// Which inlined function is this frame referring to
pub inline_context: u32,
}
/// Max number of frames to print.
@ -64,6 +66,7 @@ fn _print(w: &mut Write, format: PrintFormat) -> io::Result<()> {
let mut frames = [Frame {
exact_position: ptr::null(),
symbol_addr: ptr::null(),
inline_context: 0,
}; MAX_NB_FRAMES];
let (nb_frames, context) = unwind_backtrace(&mut frames)?;
let (skipped_before, skipped_after) =