Skip to content

Commit 9ab2eb5

Browse files
committed
Fix crash when dwarf parsing starts while binja is shutting down
1 parent 56877b1 commit 9ab2eb5

File tree

1 file changed

+1
-1
lines changed
  • rust/examples/dwarf/dwarf_import/src

1 file changed

+1
-1
lines changed

rust/examples/dwarf/dwarf_import/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ fn parse_dwarf(
468468
// TODO : Make this more robust...some DWOs follow non-DWO conventions
469469

470470
// Figure out if it's the given view or the raw view that has the dwarf info in it
471-
let raw_view = &debug_bv.raw_view().unwrap();
471+
let raw_view = &debug_bv.raw_view()?;
472472
let view = if is_dwo_dwarf(debug_bv) || is_non_dwo_dwarf(debug_bv) {
473473
debug_bv
474474
} else {

0 commit comments

Comments
 (0)