Agent Manipulation Interfaces
-
rd_init() -
This function establishes the rtld-debugger version requirements. The base
versionis defined asRD_VERSION1. The currentversionis always defined byRD_VERSION.rd_err_e rd_init(int version);If the version requirement of the controlling process is greater than the rtld-debugger interface available, then
RD_NOCAPABis returned. -
rd_new() -
This function creates a new exported interface agent.
rd_agent_t *rd_new(struct ps_prochandle *php);phpis a cookie created by the controlling process to identify the target process. This cookie is used by the imported interface offered by the controlling process to maintain context, and is opaque to the rtld-debugger interface. -
rd_reset() -
This function resets the information within the agent based off the same
ps_prochandlestructure given tord_new().rd_err_e rd_reset(struct rd_agent *rdap);This function is called when a target process is restarted.
-
rd_delete() -
This function deletes an agent and frees any state associated with it.
void rd_delete(struct rd_agent *rdap);