From fb0fcd199680032932784b07b074738999779d58 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Tue, 16 Jan 2024 15:07:23 -0500 Subject: Add support for components in debug info --- rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'rust/examples') diff --git a/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs b/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs index 89ff2e97..cefc8672 100644 --- a/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs +++ b/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs @@ -293,7 +293,8 @@ impl DebugInfoBuilder { fn commit_types(&self, debug_info: &mut DebugInfo) { for debug_type in self.types() { if debug_type.commit { - debug_info.add_type(debug_type.name.clone(), debug_type.t.as_ref()); + debug_info.add_type(debug_type.name.clone(), debug_type.t.as_ref(), &[]); + // TODO : Components } } } @@ -304,7 +305,8 @@ impl DebugInfoBuilder { assert!(debug_info.add_data_variable( address, &self.get_type(*type_uid).unwrap().1, - name.clone() + name.clone(), + &[] // TODO : Components )); } } @@ -346,6 +348,7 @@ impl DebugInfoBuilder { Some(self.get_function_type(function)), function.address, function.platform.clone(), + vec![], // TODO : Components )); } } -- cgit v1.3.1