summaryrefslogtreecommitdiff
path: root/rust/examples/dwarf
diff options
context:
space:
mode:
authorMichael Krasnitski <michael.krasnitski@gmail.com>2024-07-22 09:36:19 -0400
committermason <35282038+emesare@users.noreply.github.com>2024-07-26 11:53:12 +0000
commit8a5cd4b42efd254672d9e3e60e13702de7149ad4 (patch)
tree81aa403f5e15e7b10baa9e06898b3341143afffa /rust/examples/dwarf
parent85c04eac52abe3aa0c54cd079bf87e64a60b62bd (diff)
Add `VariableSourceType` type alias
Diffstat (limited to 'rust/examples/dwarf')
-rw-r--r--rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs b/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs
index 8a050d80..408b373f 100644
--- a/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs
+++ b/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs
@@ -21,8 +21,7 @@ use binaryninja::{
rc::*,
symbol::SymbolType,
templatesimplifier::simplify_str_to_fqn,
- types::{Conf, FunctionParameter, NamedTypedVariable, Type, Variable},
- binaryninjacore_sys::BNVariableSourceType,
+ types::{Conf, FunctionParameter, NamedTypedVariable, Type, Variable, VariableSourceType},
};
use gimli::{DebuggingInformationEntry, Dwarf, Unit};
@@ -415,7 +414,7 @@ impl DebugInfoBuilder {
return;
}
- let var = Variable::new(BNVariableSourceType::StackVariableSourceType, 0, adjusted_offset);
+ let var = Variable::new(VariableSourceType::StackVariableSourceType, 0, adjusted_offset);
function.stack_variables.push(NamedTypedVariable::new(var, name, t, false));
}