浏览代码

UserspaceEmulator: Print out the current EIP as we execute instructions

Andreas Kling 5 年之前
父节点
当前提交
c4ec38ddb5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      DevTools/UserspaceEmulator/Emulator.cpp

+ 1 - 1
DevTools/UserspaceEmulator/Emulator.cpp

@@ -129,7 +129,7 @@ int Emulator::exec()
     while (!m_shutdown) {
     while (!m_shutdown) {
         auto base_eip = m_cpu.eip();
         auto base_eip = m_cpu.eip();
         auto insn = X86::Instruction::from_stream(m_cpu, true, true);
         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 :^)
         // FIXME: Remove this hack once it's no longer needed :^)
         if (insn.mnemonic() == "RET")
         if (insn.mnemonic() == "RET")