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:
parent
ae1d14bc7a
commit
c4ec38ddb5
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue