/// Reads the DW_AT_data_member_location and returns the entry's bit offset
Reads the DW_AT_data_member_location and returns the entry's bit offset
Reads the DW_AT_data_member_location and returns the entry ' s bit offset
fn read_data_member_location(
    unit: &Unit<DefaultReader, usize>,
    entry: &DebuggingInformationEntry<DefaultReader, usize>,
) -> Result<u64, TraceError> {
    // TODO: Sometimes this is not a simple number, but a location expression.
    // As of writing this has not come up, but I can imagine this is the case for C bitfields.
    // It is the offset in bits from the base.
    Ok(entry
        .required_attr(unit, gimli::constants::DW_AT_data_member_location)?
        .required_udata_value()?
        * 8)
}
fn read_data_member_location ( unit : & Unit < DefaultReader , usize > , entry : & DebuggingInformationEntry < DefaultReader , usize > , ) -> Result < u64 , TraceError > { // TODO: Sometimes this is not a simple number, but a location expression. // As of writing this has not come up, but I can imagine this is the case for C bitfields. // It is the offset in bits from the base. Ok ( entry . required_attr ( unit , gimli :: constants :: DW_AT_data_member_location ) ? . required_udata_value ( ) ? * 8 ) }
Reads the DW_AT_data_member_location and returns the entry's bit offset
Reads the DW_AT_data_member_location and returns the entry ' s bit offset
unit
&Unit<DefaultReader, usize>
entry
&DebuggingInformationEntry<DefaultReader, usize>