about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-12-04 16:25:02 +0100
committerptitSeb <sebastien.chev@gmail.com>2022-12-04 16:25:02 +0100
commit7b813d03b9e966b171f72273c085397e30f2addd (patch)
tree406176820319d5a222b35aebe4d9638cd39a89e2 /src
parent93d06e8680e6827b316b8901b90d203c323d7eca (diff)
downloadbox64-7b813d03b9e966b171f72273c085397e30f2addd.tar.gz
box64-7b813d03b9e966b171f72273c085397e30f2addd.zip
[TRACE] Print function name from on push rbp, instead of function name here
Diffstat (limited to 'src')
-rwxr-xr-xsrc/emu/x64run_private.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/emu/x64run_private.c b/src/emu/x64run_private.c
index cbdf20ad..7929e2fc 100755
--- a/src/emu/x64run_private.c
+++ b/src/emu/x64run_private.c
@@ -1076,8 +1076,7 @@ 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) {
-                printf_log(LOG_NONE, " => STACK_TOP: %p", *(void**)(R_RSP));
-                printFunctionAddr(ip, "here: ");
+                printFunctionAddr(*(uintptr_t*)(R_RSP), " STACK_TOP: ");
             } else if(peek==0xF3 && PK(1)==0x0F && PK(2)==0x1E && PK(3)==0xFA) {
                 printFunctionAddr(*(uintptr_t*)(R_RSP), " STACK_TOP: ");
             } else if(peek==0xE8) { // Call