Skip to main content

step_frame_pointer

Function step_frame_pointer 

Source
pub fn step_frame_pointer(
    reader: &dyn MemoryReader,
    regs: &mut RegisterContext,
    is_64_bit: bool,
) -> Result<bool, UnwindError>
Expand description

Attempts to unwind one frame by following the frame pointer chain.

On both ARM64 and x86_64:

  • [FP+0] → previous frame pointer
  • [FP+8] → return address

Updates regs in place with the new FP, SP, and PC. Clears volatile registers.

Returns Ok(true) if a frame was found, Ok(false) if at the bottom.