diff options
| author | Yang Liu <liuyang22@iscas.ac.cn> | 2025-05-28 20:29:58 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-28 14:29:58 +0200 |
| commit | 01da6215de69f0c61c59b8b494e4fb293fc29f02 (patch) | |
| tree | 97facc15f93735693a2b8f1e2024592abae4ea87 /src/os/os_wine.c | |
| parent | 1fc558fcabcf0a9da91ce585bb82924ba0ae3de4 (diff) | |
| download | box64-01da6215de69f0c61c59b8b494e4fb293fc29f02.tar.gz box64-01da6215de69f0c61c59b8b494e4fb293fc29f02.zip | |
[WOW64] Supported logging to stdout (#2679)
Diffstat (limited to 'src/os/os_wine.c')
| -rw-r--r-- | src/os/os_wine.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/os/os_wine.c b/src/os/os_wine.c index e7f34a99..1e61772a 100644 --- a/src/os/os_wine.c +++ b/src/os/os_wine.c @@ -1,8 +1,11 @@ +#include <stdio.h> +#include <string.h> #include <windows.h> #include <ntstatus.h> #include <winternl.h> #include "os.h" +#include "wine/debug.h" #define HandleToULong(h) ((ULONG)(ULONG_PTR)(h)) @@ -54,11 +57,20 @@ void EmuX86Syscall(void* emu) // FIXME } +const char* GetBridgeName(void* p) +{ + return NULL; +} + const char* GetNativeName(void* p) { return NULL; } +void* GetNativeFnc(uintptr_t fnc) +{ + return NULL; +} void PersonalityAddrLimit32Bit(void) { @@ -193,3 +205,16 @@ int VolatileRangesContains(uintptr_t addr) { return 0; } + +void PrintfFtrace(int prefix, const char* fmt, ...) +{ + static char buf[1024] = { 0 }; + + char* p = buf; + strcpy(p, prefix > 1 ? "[\033[31mBOX64\033[0m] " : "[BOX64] "); + va_list args; + va_start(args, fmt); + vsprintf(p + strlen(p), fmt, args); + va_end(args); + __wine_dbg_output(p); +} |