From 02ea8d7309a0c0777ac8a07bfc1e0fd497e9f5f5 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Fri, 4 Aug 2023 18:14:00 -0400 Subject: DWARF : Update gimli dependency --- rust/examples/dwarf/dwarfdump/Cargo.toml | 2 +- rust/examples/dwarf/dwarfdump/src/lib.rs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'rust/examples/dwarf/dwarfdump') diff --git a/rust/examples/dwarf/dwarfdump/Cargo.toml b/rust/examples/dwarf/dwarfdump/Cargo.toml index da25a756..1d3411a0 100644 --- a/rust/examples/dwarf/dwarfdump/Cargo.toml +++ b/rust/examples/dwarf/dwarfdump/Cargo.toml @@ -10,4 +10,4 @@ crate-type = ["cdylib"] [dependencies] dwarfreader = { path = "../shared/" } binaryninja = {path="../../../"} -gimli = "0.26" +gimli = "0.27" diff --git a/rust/examples/dwarf/dwarfdump/src/lib.rs b/rust/examples/dwarf/dwarfdump/src/lib.rs index 71af87c4..08a237f4 100644 --- a/rust/examples/dwarf/dwarfdump/src/lib.rs +++ b/rust/examples/dwarf/dwarfdump/src/lib.rs @@ -29,6 +29,7 @@ use gimli::{ EntriesTreeNode, Reader, ReaderOffset, + SectionId, Unit, UnitSectionOffset, }; @@ -259,7 +260,9 @@ fn dump_dwarf(bv: &BinaryView) { graph.append(&graph_root); let endian = dwarfreader::get_endian(bv); - let section_reader = dwarfreader::create_section_reader(bv, endian, false); + let section_reader = |section_id: SectionId| -> _ { + dwarfreader::create_section_reader(section_id, bv, endian, false) + }; let dwarf = Dwarf::load(§ion_reader).unwrap(); let mut iter = dwarf.units(); -- cgit v1.3.1