Prd_agent - return the rtld_db agent handle for a victim process
#include <libproc.h>
rd_agent_t *Prd_agent(ps_prochandle_t *Pr);
The Pr argument identifies a live victim process attached to the controlling process by the create and grab interfaces. For more information, see the Pcreate(3PROC) and Pgrab(3PROC) man pages.
The Prd_agent() function returns the rtld_db agent handle for the victim process. It is created, used, and maintained by the library.
The rtld_db agent handle is used to exercise features of the debugging interfaces of the runtime linker. For more information, see the rtld_db(3EXT) man page.
On failure, the Prd_agent() function returns NULL.
See attributes(7) for descriptions of the following attributes:
|
rtld_db(3EXT), libproc.h(3HEAD), libproc(3LIB), Pcreate(3PROC), Pgrab(3PROC), proc(5)