Browse Source

UserspaceEmulator: Print out the current EIP as we execute instructions

Andreas Kling 5 years ago
parent
commit
c4ec38ddb5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      DevTools/UserspaceEmulator/Emulator.cpp

+ 1 - 1
DevTools/UserspaceEmulator/Emulator.cpp

@@ -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")