Add support for tracing functions in libraries loaded at runtime (via libdl).
diff --git a/common.h b/common.h
index 115b954..70e4a5a 100644
--- a/common.h
+++ b/common.h
@@ -176,7 +176,10 @@
struct callstack_element callstack[MAX_CALLDEPTH];
struct library_symbol * list_of_symbols;
+ int libdl_hooked;
/* Arch-dependent: */
+ void * debug; /* arch-dep process debug struct */
+ long debug_state; /* arch-dep debug state */
void * instruction_pointer;
void * stack_pointer; /* To get return addr, args... */
void * return_addr;
@@ -267,4 +270,7 @@
extern size_t umovebytes (Process *proc, void * addr, void * laddr, size_t count);
extern int ffcheck(void * maddr);
extern void * sym2addr(Process *, struct library_symbol *);
+extern int linkmap_init(Process *, struct ltelf *);
+extern void arch_check_dbg(Process *proc);
+extern struct ltelf main_lte;