1
0
mirror of https://github.com/solemnwarning/ipxwrapper synced 2024-12-30 16:45:37 +01:00

Log entry and target of stub calls.

This commit is contained in:
Daniel Collins 2014-01-12 17:26:51 +00:00
parent 7c83726b14
commit a930a972df
4 changed files with 8 additions and 4 deletions

View File

@ -7,6 +7,8 @@ Version XXX:
Bugfix: Removed conflicting send and connect functions.
Bugfix: Fixed segfault in recvfrom when called with NULL addrlen.
Update: Log entry and target DLL of stub calls.
Version 0.4.1:
Feature: Added workaround for point-to-point links.

View File

@ -70,8 +70,9 @@ foreach my $func(@stubs) {
print CODE "_$f_name:\n";
if($do_logging) {
print CODE "\tpush\t$f_name\_sym\n";
print CODE "\tpush\tdword ".$func->{"dllnum"}."\n";
print CODE "\tpush\t$f_name\_sym\n";
print CODE "\tpush\tdword $dllnum\n";
print CODE "\tcall\t_log_call\n";
}

View File

@ -272,6 +272,7 @@ void __stdcall *find_sym(unsigned int dllnum, const char *symbol) {
return ptr;
}
void __stdcall log_call(unsigned int dllnum, const char *symbol) {
log_printf(LOG_CALL, "%s:%s", dll_names[dllnum], symbol);
void __stdcall log_call(unsigned int entry, const char *symbol, unsigned int target)
{
log_printf(LOG_CALL, "%s:%s -> %s", dll_names[entry], symbol, dll_names[target]);
}

View File

@ -62,7 +62,7 @@ bool reg_set_addr48(HKEY key, const char *name, addr48_t value);
void load_dll(unsigned int dllnum);
void unload_dlls(void);
void __stdcall *find_sym(unsigned int dllnum, const char *symbol);
void __stdcall log_call(unsigned int dllnum, const char *symbol);
void __stdcall log_call(unsigned int entry, const char *symbol, unsigned int target);
void log_open(const char *file);
void log_close();