diff options
| -rw-r--r-- | rust/examples/dwarf/dwarf_import/src/types.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/rust/examples/dwarf/dwarf_import/src/types.rs b/rust/examples/dwarf/dwarf_import/src/types.rs index bfc7b17d..4914b501 100644 --- a/rust/examples/dwarf/dwarf_import/src/types.rs +++ b/rust/examples/dwarf/dwarf_import/src/types.rs @@ -61,6 +61,17 @@ pub(crate) fn parse_variable<R: ReaderType>( debug_info_builder.add_data_variable(address, full_name, uid) } }, + Ok(Operation::AddressIndex { index }) => { + if let Some(uid) = type_uid { + if let Ok(address) = dwarf.address(unit, index) { + debug_info_builder.add_data_variable(address, full_name, uid) + } + else + { + warn!("Invalid index into IAT: {}", index.0); + } + } + }, Ok(op) => { debug!("Unhandled operation type for variable: {:?}", op); }, |
