summaryrefslogtreecommitdiff
path: root/rust/examples
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2025-01-23 11:06:51 -0500
committerJosh Ferrell <josh@vector35.com>2025-01-24 11:10:54 -0500
commit9ab2eb5041f058c1ef33f68b1e4e639d092a14b1 (patch)
tree61c4987a4557bf6535e5058fd4e1f8fcb9d8a4df /rust/examples
parent56877b1c87c3f75eeae1f04f4d09e5086ebe2b1b (diff)
Fix crash when dwarf parsing starts while binja is shutting down
Diffstat (limited to 'rust/examples')
-rw-r--r--rust/examples/dwarf/dwarf_import/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
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 {