More logging

This commit is contained in:
Maurice Heumann
2025-04-07 15:36:25 +02:00
parent f087d3998a
commit 66a529cf43
3 changed files with 4 additions and 2 deletions

View File

@@ -457,7 +457,8 @@ void windows_emulator::setup_hooks()
this->emu().hook_instruction(x64_hookable_instructions::invalid, [&] {
const auto ip = this->emu().read_instruction_pointer();
this->log.print(color::gray, "Invalid instruction at: 0x%" PRIx64 "\n", ip);
this->log.print(color::gray, "Invalid instruction at: 0x%" PRIx64 " (via 0x%" PRIx64 ")\n", ip,
this->process.previous_ip);
return instruction_hook_continuation::skip_instruction;
});