diff options
| author | Rubens Brandao <git@rubens.io> | 2024-04-17 07:23:15 -0300 |
|---|---|---|
| committer | Rubens Brandao <git@rubens.io> | 2024-04-17 07:43:43 -0300 |
| commit | 90040508478f4551eb303a5056026fd59bb0cdc6 (patch) | |
| tree | aea3cb4d3c0092505d9fd7b0a93b698806600442 /rust/examples/dwarf/dwarf_export/src | |
| parent | f408eb32085956f7e29e0f15fd92aa4b72453370 (diff) | |
allow DataVariable and NameAndType to be transmutable
Diffstat (limited to 'rust/examples/dwarf/dwarf_export/src')
| -rw-r--r-- | rust/examples/dwarf/dwarf_export/src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rust/examples/dwarf/dwarf_export/src/lib.rs b/rust/examples/dwarf/dwarf_export/src/lib.rs index 7143f6dd..ef71f1ae 100644 --- a/rust/examples/dwarf/dwarf_export/src/lib.rs +++ b/rust/examples/dwarf/dwarf_export/src/lib.rs @@ -551,7 +551,7 @@ fn export_data_vars( dwarf.unit.get_mut(var_die_uid).set( gimli::DW_AT_name, AttributeValue::String( - format!("data_{:x}", data_variable.address) + format!("data_{:x}", data_variable.address()) .as_bytes() .to_vec(), ), @@ -559,15 +559,15 @@ fn export_data_vars( } let mut variable_location = Expression::new(); - variable_location.op_addr(Address::Constant(data_variable.address)); + variable_location.op_addr(Address::Constant(data_variable.address())); dwarf.unit.get_mut(var_die_uid).set( gimli::DW_AT_location, AttributeValue::Exprloc(variable_location), ); if let Some(target_die_uid) = export_type( - format!("{}", data_variable.t.contents), - data_variable.t.contents.as_ref(), + format!("{}", data_variable.t()), + data_variable.t(), bv, defined_types, dwarf, |
