From 9ab2eb5041f058c1ef33f68b1e4e639d092a14b1 Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Thu, 23 Jan 2025 11:06:51 -0500 Subject: Fix crash when dwarf parsing starts while binja is shutting down --- rust/examples/dwarf/dwarf_import/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust') diff --git a/rust/examples/dwarf/dwarf_import/src/lib.rs b/rust/examples/dwarf/dwarf_import/src/lib.rs index 1130bd8a..6050593f 100644 --- a/rust/examples/dwarf/dwarf_import/src/lib.rs +++ b/rust/examples/dwarf/dwarf_import/src/lib.rs @@ -468,7 +468,7 @@ fn parse_dwarf( // TODO : Make this more robust...some DWOs follow non-DWO conventions // Figure out if it's the given view or the raw view that has the dwarf info in it - let raw_view = &debug_bv.raw_view().unwrap(); + let raw_view = &debug_bv.raw_view()?; let view = if is_dwo_dwarf(debug_bv) || is_non_dwo_dwarf(debug_bv) { debug_bv } else { -- cgit v1.3.1