The ddpi_stackstate_identify operation attempts to identify and dissect the initial stack frame.
The initial stack frame is associated with the target machine state contained in the given Ddpi_MachineState object. ddpi_stackstate_identify uses the operations associated with the Ddpi_MachineState object to examine the register and storage contents.
The outer ddpi_stackstate_identify operation will iterate through the Ddpi_StackState_Fnobject, which is provided by the application. When a stack frame is successfully identified, the Ddpi_StackState object is initialized, and set up with all relevant stack frame-information.
int ddpi_stackstate_identify(
Ddpi_StackState_Fn stackstate_fn,
Ddpi_MachineState machinestate,
Ddpi_StackState stackstate,
Dwarf_Ptr workarea,
unsigned int workarea_len,
Ddpi_Error* error);