summaryrefslogtreecommitdiff
path: root/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs')
-rw-r--r--rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs b/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs
index 537051c8..4db125c4 100644
--- a/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs
+++ b/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs
@@ -47,6 +47,7 @@ pub(crate) struct FunctionInfoBuilder {
pub(crate) address: Option<u64>,
pub(crate) parameters: Vec<Option<(String, TypeUID)>>,
pub(crate) platform: Option<Ref<Platform>>,
+ pub(crate) variable_arguments: bool,
}
impl FunctionInfoBuilder {
@@ -188,6 +189,7 @@ impl DebugInfoBuilder {
return_type: Option<TypeUID>,
address: Option<u64>,
parameters: Vec<Option<(String, TypeUID)>>,
+ variable_arguments: bool,
) {
// Raw names should be the primary key, but if they don't exist, use the full name
// TODO : Consider further falling back on address/architecture
@@ -211,6 +213,7 @@ impl DebugInfoBuilder {
address,
parameters,
platform: None,
+ variable_arguments,
});
}
}
@@ -325,10 +328,7 @@ impl DebugInfoBuilder {
})
.collect();
- // TODO : Handle
- let variable_parameters = false;
-
- binaryninja::types::Type::function(&return_type, &parameters, variable_parameters)
+ binaryninja::types::Type::function(&return_type, &parameters, function.variable_arguments)
}
fn commit_functions(&self, debug_info: &mut DebugInfo) {