Function evaluate_frame_base

Source
pub fn evaluate_frame_base<R: Reader<Offset = usize>, T: MemoryAccess>(
    dwarf: &Dwarf<R>,
    unit: &Unit<R>,
    pc: u32,
    die: &DebuggingInformationEntry<'_, '_, R>,
    registers: &mut Registers,
    mem: &mut T,
) -> Result<u64>
Expand description

Will evaluate the frame base address for a given subroutine.

Description:

  • dwarf - A reference to gimli-rs Dwarf struct.
  • unit - The compilation unit the subroutine DIE is located in.
  • pc - A machine code address, it is usually the current code location.
  • die - A reference to the subroutine DIE.
  • registers - A Registers struct which is used to read the register values.
  • memory - Used to read the memory of the debugged target.

This function is used to evaluate the frame base address for a given subroutine.