1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:48:12 +00:00

UserspaceEmulator: Print out the current EIP as we execute instructions

This commit is contained in:
Andreas Kling 2020-07-11 16:48:27 +02:00
parent ae1d14bc7a
commit c4ec38ddb5

View file

@ -129,7 +129,7 @@ int Emulator::exec()
while (!m_shutdown) {
auto base_eip = m_cpu.eip();
auto insn = X86::Instruction::from_stream(m_cpu, true, true);
out() << "\033[33;1m" << insn.to_string(base_eip) << "\033[0m";
out() << (const void*)base_eip << " \033[33;1m" << insn.to_string(base_eip) << "\033[0m";
// FIXME: Remove this hack once it's no longer needed :^)
if (insn.mnemonic() == "RET")