Function rust_debug::call_stack::find_function_die[][src]

pub fn find_function_die<'a, R: Reader<Offset = usize>>(
    dwarf: &'a Dwarf<R>,
    address: u32
) -> Result<(UnitSectionOffset, UnitOffset)>
Expand description

Will find the DIE representing the searched function

Description:

  • dwarf - A reference to gimli-rs Dwarf struct.
  • address - Used to find which function this machine code address belongs too.

This function will search DWARF for the function that the given machine code address belongs too.