The ddpi_stackstate_parent operation attempts to identify and dissect the parent stack frame associated with the target machine state.
This process requires the requires the target machine state and the current stack frame. The target machine state is specified by the given Ddpi_MachineState object. The current stack frame is specified by the given Ddpi_StackState object.
ddpi_stackstate_parent uses the APIs associated with the Ddpi_MachineState object to examine the register and storage contents.
The outer ddpi_stackstate_parent operation will iterate through the Ddpi_StackState_Fn object, which is provided by the application. When a stack frame is successfully identified, the parent Ddpi_MachineState object is initialized and all relevant machine state values are set. If any value is unknown or questionable, the valid flag for that value must be FALSE.
The parent Ddpi_StackState object is then initialized, and set up with all relevant parent stack frame information.
int ddpi_stackstate_parent(
Ddpi_StackState_Fn stackstate_fn,
Ddpi_MachineState machinestate,
Ddpi_StackState stackstate,
Ddpi_MachineState parent_machinestate,
Ddpi_StackState parent_stackstate,
Dwarf_Ptr workarea,
unsigned int workarea_len,
Ddpi_Error* error);