pub fn parse_variable_entries(
    dwarf: &Dwarf<EndianSlice<RunTimeEndian>>,
    unit: &Unit<EndianSlice<RunTimeEndian>>,
    header: &UnitHeader<EndianSlice<RunTimeEndian>>,
) -> Result<Vec<ObjectLocation>> {
    let mut objects: Vec<ObjectLocation> = vec![];
    // Iterate over the Debugging Information Entries (DIEs) in the unit.
    let mut entries = unit.entries();
    while let Some((_, entry)) = entries.next_dfs()? {
        // Iterate over the variables in the DIE.
        if entry.tag() == gimli::DW_TAG_variable {
            match parse_object_location(&unit, &entry, &dwarf, &header)? {
                Some(variable) => objects.push(variable),
                None => (),
            }
        }
    }
    Ok(objects)
}
/// Parses all `DW_AT_variable`s in the current DWARF unit if there are any.
///
/// * `dwarf` -The DWARF object
/// * `unit`- The current unit
/// * `header` - The current header
Parses all `DW_AT_variable`s in the current DWARF unit if there are any.
Parses all ` DW_AT_variable ` s in the current DWARF unit if there are any .
pub fn parse_variable_entries(
    dwarf: &Dwarf<EndianSlice<RunTimeEndian>>,
    unit: &Unit<EndianSlice<RunTimeEndian>>,
    header: &UnitHeader<EndianSlice<RunTimeEndian>>,
) -> Result<Vec<ObjectLocation>> {
    let mut objects: Vec<ObjectLocation> = vec![];
    // Iterate over the Debugging Information Entries (DIEs) in the unit.
    let mut entries = unit.entries();
    while let Some((_, entry)) = entries.next_dfs()? {
        // Iterate over the variables in the DIE.
        if entry.tag() == gimli::DW_TAG_variable {
            match parse_object_location(&unit, &entry, &dwarf, &header)? {
                Some(variable) => objects.push(variable),
                None => (),
            }
        }
    }
    Ok(objects)
}
pub fn parse_variable_entries ( dwarf : & Dwarf < EndianSlice < RunTimeEndian > > , unit : & Unit < EndianSlice < RunTimeEndian > > , header : & UnitHeader < EndianSlice < RunTimeEndian > > , ) -> Result < Vec < ObjectLocation > > { let mut objects : Vec < ObjectLocation > = vec ! [ ] ; // Iterate over the Debugging Information Entries (DIEs) in the unit. let mut entries = unit . entries ( ) ; while let Some ( ( _ , entry ) ) = entries . next_dfs ( ) ? { // Iterate over the variables in the DIE. if entry . tag ( ) == gimli :: DW_TAG_variable { match parse_object_location ( & unit , & entry , & dwarf , & header ) ? { Some ( variable ) => objects . push ( variable ) , None => ( ) , } } } Ok ( objects ) }
Parses all `DW_AT_variable`s in the current DWARF unit if there are any.
Parses all ` DW_AT_variable ` s in the current DWARF unit if there are any .
dwarf
&Dwarf<EndianSlice<RunTimeEndian>>
unit
&Unit<EndianSlice<RunTimeEndian>>
header
&UnitHeader<EndianSlice<RunTimeEndian>>
dwarf
&Dwarf<EndianSlice<RunTimeEndian>>
unit
&Unit<EndianSlice<RunTimeEndian>>
header
&UnitHeader<EndianSlice<RunTimeEndian>>