summaryrefslogtreecommitdiff
path: root/rust/examples/dwarf/dwarf_import
diff options
context:
space:
mode:
Diffstat (limited to 'rust/examples/dwarf/dwarf_import')
-rw-r--r--rust/examples/dwarf/dwarf_import/Cargo.toml2
-rw-r--r--rust/examples/dwarf/dwarf_import/src/lib.rs5
2 files changed, 4 insertions, 3 deletions
diff --git a/rust/examples/dwarf/dwarf_import/Cargo.toml b/rust/examples/dwarf/dwarf_import/Cargo.toml
index 322a4dd6..07605991 100644
--- a/rust/examples/dwarf/dwarf_import/Cargo.toml
+++ b/rust/examples/dwarf/dwarf_import/Cargo.toml
@@ -10,5 +10,5 @@ crate-type = ["cdylib"]
[dependencies]
dwarfreader = { path = "../shared/" }
binaryninja = { path = "../../../" }
-gimli = "0.26.1"
+gimli = "0.27"
log = "0.4.17"
diff --git a/rust/examples/dwarf/dwarf_import/src/lib.rs b/rust/examples/dwarf/dwarf_import/src/lib.rs
index e4f8a994..69fe42aa 100644
--- a/rust/examples/dwarf/dwarf_import/src/lib.rs
+++ b/rust/examples/dwarf/dwarf_import/src/lib.rs
@@ -218,8 +218,9 @@ fn parse_dwarf(
// gimli setup
let endian = get_endian(view);
- let section_reader = create_section_reader(view, endian, dwo_file);
- let mut dwarf = Dwarf::load(&section_reader).unwrap();
+ let mut section_reader =
+ |section_id: SectionId| -> _ { create_section_reader(section_id, view, endian, dwo_file) };
+ let mut dwarf = Dwarf::load(&mut section_reader).unwrap();
if dwo_file {
dwarf.file_type = DwarfFileType::Dwo;
}