diff options
| author | KyleMiles <krm504@nyu.edu> | 2024-01-16 15:07:23 -0500 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2024-01-19 15:45:24 -0500 |
| commit | fb0fcd199680032932784b07b074738999779d58 (patch) | |
| tree | 55a1d53541c0ec99bb486ff9863d14540602ad9c /rust/examples | |
| parent | 60d69dba06adb8ea442ee5e28c1bfda5290818e1 (diff) | |
Add support for components in debug info
Diffstat (limited to 'rust/examples')
| -rw-r--r-- | rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs | 7 |
1 files changed, 5 insertions, 2 deletions
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 )); } } |
