From 7be992787ec6b299c7aeb42f6293809bd9288c67 Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Tue, 8 Oct 2024 22:55:09 -0400 Subject: Parse .debug_frame if present and fix stack variable offset calculation --- rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs') diff --git a/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs b/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs index d1208cc0..2a71b38a 100644 --- a/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs +++ b/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs @@ -406,6 +406,7 @@ impl DebugInfoBuilder { return; }; + // TODO: offset should be calculated based off reference address and not function start let adjusted_offset = offset - offset_adjustment; if adjusted_offset > 0 { -- cgit v1.3.1