Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
ia32.h File Reference

Go to the source code of this file.

Functions

Status ia32_GetCallTarget (void *ret_addr, void *&target)
 check if there is an IA-32 CALL instruction right before ret_addr. More...
 

Function Documentation

◆ ia32_GetCallTarget()

Status ia32_GetCallTarget ( void *  ret_addr,
void *&  target 
)

check if there is an IA-32 CALL instruction right before ret_addr.

Returns
INFO::OK if so and ERR::FAIL if not.

also attempts to determine the call target. if that is possible (directly addressed relative or indirect jumps), it is stored in target, which is otherwise 0.

this function is used for walking the call stack.