diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-01-21 12:22:08 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-01-21 12:22:08 +0100 |
| commit | 427ca732fe6b1d17ea9a75d69594af13f8185c90 (patch) | |
| tree | 3ec6a2ea2c0ac8084b8b072f5e72c76d0bc72f6d /src | |
| parent | ca92a0b90a70561800efb3b7bbd756f021bbcfb0 (diff) | |
| download | box64-427ca732fe6b1d17ea9a75d69594af13f8185c90.tar.gz box64-427ca732fe6b1d17ea9a75d69594af13f8185c90.zip | |
[TRACE] Improved trace for __libc_start_main init handling
Diffstat (limited to 'src')
| -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 739f9e09..22fb0ebc 100644 --- a/src/emu/x64run_private.c +++ b/src/emu/x64run_private.c @@ -63,7 +63,7 @@ int32_t EXPORT my___libc_start_main(x64emu_t* emu, int *(main) (int, char * *, c SetRSI(emu, (uint64_t)my_context->argv); SetRDI(emu, (uint64_t)my_context->argc); R_RIP=(uint64_t)*init; - printf_log(LOG_DEBUG, "Calling init(%p) from __libc_start_main\n", *init); + printf_dump(LOG_DEBUG, "Calling init(%p) from __libc_start_main\n", *init); DynaRun(emu); if(emu->error) // any error, don't bother with more return 0; @@ -74,6 +74,7 @@ int32_t EXPORT my___libc_start_main(x64emu_t* emu, int *(main) (int, char * *, c emu->quit = 0; } else { if(my_context->elfs[0]) { + printf_dump(LOG_DEBUG, "Calling init from main elf\n"); RunElfInit(my_context->elfs[0], emu); } } |