ddpi_stackstate_get_ep_locn operation

The ddpi_stackstate_get_ep_locn operation returns the address of the entry point of the subprogram whose invocation resulted in the creation of the current stack frame.

Prototype

int ddpi_stackstate_get_ep_locn(
  Ddpi_StackState       stackstate,
  Dwarf_Addr*         ret_ep_locn,
  Ddpi_Error*           error);

Parameters

stackstate
Input. This accepts the Ddpi_StackState object.
ret_ep_locn
Input. This accepts the address object.
error
See The libddpi error parameter.

Return values

DW_DLV_OK
Returned when the address of the entry point of the subprogram whose invocation resulted in the creation of the current stack frame has been successfully retrieved.
DW_DLV_NO_ENTRY
Never returned.
DW_DLV_ERROR
This value is returned if:
  • stackstate is NULL.
  • The Ddpi_Info object associated with stackstate is NULL.
  • ret_ep_locn is NULL.