#include <src/component/IgHook_IgHookTrace.h>
Definition at line 28 of file IgHook_IgHookTrace.h.
IgHookTrace::IgHookTrace |
( |
IgHookTrace * |
parent = 0 , |
|
|
void * |
address = 0 |
|
) |
| |
void * IgHookTrace::address |
( |
void |
| ) |
|
static int IgHookTrace::stacktrace |
( |
void ** |
addresses, |
|
|
int |
nmax |
|
) |
| |
|
static |
bool IgHookTrace::symbol |
( |
void * |
address, |
|
|
const char *& |
sym, |
|
|
const char *& |
lib, |
|
|
int & |
offset, |
|
|
int & |
liboffset |
|
) |
| |
|
static |
Definition at line 226 of file IgHook_IgHookTrace.cpp.
230 liboffset = (
unsigned long)
address;
233 if ( dladdr(
address, &info ) ) {
234 if ( info.dli_fname && info.dli_fname[0] ) lib = info.dli_fname;
236 if ( info.dli_fbase ) liboffset = (
unsigned long)
address - (
unsigned long)info.dli_fbase;
238 if ( info.dli_saddr ) offset = (
unsigned long)
address - (
unsigned long)info.dli_saddr;
240 if ( info.dli_sname && info.dli_sname[0] ) sym = info.dli_sname;
bool IgHookTrace::symbol |
( |
const char *& |
sym, |
|
|
const char *& |
lib, |
|
|
int & |
offset, |
|
|
int & |
liboffset |
|
) |
| |
Definition at line 248 of file IgHook_IgHookTrace.cpp.
static bool symbol(void *address, const char *&sym, const char *&lib, int &offset, int &liboffset)
void * IgHookTrace::tosymbol |
( |
void * |
address | ) |
|
|
static |
Definition at line 253 of file IgHook_IgHookTrace.cpp.
256 return ( dladdr(
address, &info ) && info.dli_fname && info.dli_fname[0] && info.dli_saddr ) ? info.dli_saddr
void* IgHookTrace::m_address |
|
private |
The documentation for this class was generated from the following files: