From bbd66f493a23f051ab57fe31fa6c37a68e10e584 Mon Sep 17 00:00:00 2001 From: Gary Guo Date: Thu, 7 Oct 2021 02:56:21 +0100 Subject: [PATCH] Use gimli::UnwindContext --- src/unwinder/frame.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/unwinder/frame.rs b/src/unwinder/frame.rs index 15c9088..fe7c6e0 100644 --- a/src/unwinder/frame.rs +++ b/src/unwinder/frame.rs @@ -1,6 +1,5 @@ -use gimli::{ - BaseAddresses, CfaRule, Expression, RegisterRule, UninitializedUnwindContext, UnwindTableRow, -}; +use alloc::boxed::Box; +use gimli::{BaseAddresses, CfaRule, Expression, RegisterRule, UnwindContext, UnwindTableRow}; #[cfg(feature = "dwarf-expr")] use gimli::{EvaluationResult, Location, Value}; @@ -34,7 +33,7 @@ impl Frame { Some(v) => v, None => return Ok(None), }; - let mut unwinder = UninitializedUnwindContext::new(); + let mut unwinder = UnwindContext::new(); let row = fde_result .fde .unwind_info_for_address(