mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
format symbols under shared frames
This commit is contained in:
parent
e4a6032706
commit
5fb298664c
@ -71,6 +71,7 @@ unsafe fn _print_fmt(fmt: &mut fmt::Formatter<'_>, print_fmt: PrintFmt) -> fmt::
|
||||
|
||||
let mut hit = false;
|
||||
let mut stop = false;
|
||||
let mut frame_fmt = bt_fmt.frame();
|
||||
backtrace_rs::resolve_frame_unsynchronized(frame, |symbol| {
|
||||
hit = true;
|
||||
if print_fmt == PrintFmt::Short {
|
||||
@ -87,7 +88,7 @@ unsafe fn _print_fmt(fmt: &mut fmt::Formatter<'_>, print_fmt: PrintFmt) -> fmt::
|
||||
}
|
||||
|
||||
if start {
|
||||
res = bt_fmt.frame().symbol(frame, symbol);
|
||||
res = frame_fmt.symbol(frame, symbol);
|
||||
}
|
||||
});
|
||||
if stop {
|
||||
@ -95,7 +96,7 @@ unsafe fn _print_fmt(fmt: &mut fmt::Formatter<'_>, print_fmt: PrintFmt) -> fmt::
|
||||
}
|
||||
if !hit {
|
||||
if start {
|
||||
res = bt_fmt.frame().print_raw(frame.ip(), None, None, None);
|
||||
res = frame_fmt.print_raw(frame.ip(), None, None, None);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user