summaryrefslogtreecommitdiff
path: root/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2024-10-08 22:55:09 -0400
committerJosh Ferrell <josh@vector35.com>2024-10-10 17:37:09 -0400
commit7be992787ec6b299c7aeb42f6293809bd9288c67 (patch)
treed8f8f35f26e384c9d6c229be2dfa72986c04a998 /rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs
parent4539ae74c9ea3ea39efd3314fb34de757a4b1c5a (diff)
Parse .debug_frame if present and fix stack variable offset calculation
Diffstat (limited to 'rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs')
-rw-r--r--rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs1
1 files changed, 1 insertions, 0 deletions
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 {