Function name_attribute

Source
pub fn name_attribute<R: Reader<Offset = usize>>(
    dwarf: &Dwarf<R>,
    die: &DebuggingInformationEntry<'_, '_, R>,
) -> Result<Option<String>>
Expand description

This function will return the value of the name attribute in the given DIE.

Description:

  • dwarf - A reference to gimli-rs Dwarf struct.
  • die - A reference to a gimli-rs Die struct.

This function will try to retrieve the value of the attribute DW_AT_name from the given DIE.