summaryrefslogtreecommitdiff
path: root/rust/examples/dwarf/dwarf_import
diff options
context:
space:
mode:
authorKyleMiles <krm504@nyu.edu>2023-08-04 18:14:00 -0400
committerKyleMiles <krm504@nyu.edu>2023-08-22 10:00:01 -0400
commit02ea8d7309a0c0777ac8a07bfc1e0fd497e9f5f5 (patch)
treea193d8d33e8f7a841ac5fd7bd874beb585c4bd36 /rust/examples/dwarf/dwarf_import
parentb7a03b4d5e24485691ece768c1ea219312e9b9f8 (diff)
DWARF : Update gimli dependency
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;
}