diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-11-13 17:07:06 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-11-13 17:07:06 +0100 |
| commit | 0bc7100ea81d5097110e944d34a0162d074593ac (patch) | |
| tree | bbee91a15ebce810fe2cceaad23a9f11a606cf29 /src | |
| parent | 8698a58a60c7b8c75d8c741567c7a7c13fec1636 (diff) | |
| download | box64-0bc7100ea81d5097110e944d34a0162d074593ac.tar.gz box64-0bc7100ea81d5097110e944d34a0162d074593ac.zip | |
Print the ROLLING_LOG on the Ask to run at NULL error
Diffstat (limited to 'src')
| -rwxr-xr-x | src/emu/x64run.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/emu/x64run.c b/src/emu/x64run.c index de48070a..ea3cbefc 100755 --- a/src/emu/x64run.c +++ b/src/emu/x64run.c @@ -49,7 +49,17 @@ int Run(x64emu_t *emu, int step) return 0; if(addr==0) { emu->quit = 1; - printf_log(LOG_INFO, "Ask to run at NULL, quit silently\n"); + printf_log(LOG_INFO, "%04d|Ask to run at NULL, quit silently\n", GetTID()); + if(cycle_log) { + printf_log(LOG_INFO, "Last calls\n"); + int j = (my_context->current_line+1)%cycle_log; + for (int i=0; i<cycle_log; ++i) { + int k = (i+j)%cycle_log; + if(my_context->log_call[k][0]) { + printf_log(LOG_INFO, "%s => return %s\n", my_context->log_call[k], my_context->log_ret[k]); + } + } + } return 0; } //ref opcode: http://ref.x64asm.net/geek32.html#xA1 |