diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-11-12 14:58:36 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-11-12 14:58:36 +0100 |
| commit | 40f90dd8f347c84fd7faa4a85595a170f94dc2c8 (patch) | |
| tree | 71f1147ef3daec754e48d8d7d65d26cfc73a1489 | |
| parent | 7e8f8cf415cc554c5cbba4936abc3ee21b6803c7 (diff) | |
| download | box64-40f90dd8f347c84fd7faa4a85595a170f94dc2c8.tar.gz box64-40f90dd8f347c84fd7faa4a85595a170f94dc2c8.zip | |
[TRACE] Small improvment for push rbp trace
| -rw-r--r-- | src/emu/x64run_private.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emu/x64run_private.c b/src/emu/x64run_private.c index 4e8ec879..70bafc07 100644 --- a/src/emu/x64run_private.c +++ b/src/emu/x64run_private.c @@ -1121,7 +1121,8 @@ void PrintTrace(x64emu_t* emu, uintptr_t ip, int dynarec) printf_log(LOG_NONE, " => STACK_TOP: %p", *(void**)(R_RSP)); printFunctionAddr(ip, "here: "); } else if((peek==0x55 || peek==0x53) && !is32bits) { - printFunctionAddr(*(uintptr_t*)(R_RSP), " STACK_TOP: "); + if(!printFunctionAddr(*(uintptr_t*)(R_RSP), " STACK_TOP: ")) + printf_log(LOG_NONE, " STACK_TOP: %p ", (void*)*(uintptr_t*)(R_RSP)); } else if((peek==0x55 || peek==0x56) && is32bits) { if(!printFunctionAddr(*(uint32_t*)(R_RSP), " STACK_TOP: ")) printf_log(LOG_NONE, " STACK_TOP: %p ", (void*)(uintptr_t)*(uint32_t*)(R_RSP)); |