diff options
author | Andreas Kling <kling@serenityos.org> | 2020-07-21 16:36:15 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-21 16:38:39 +0200 |
commit | 48eec58bdc4e3ab3956838ef1cd32140e9719d21 (patch) | |
tree | 34af426a397f43f9ab8032def497011860820773 | |
parent | 6c8a0e8c56498d37615b4f457eba86d166c0122b (diff) | |
download | serenity-48eec58bdc4e3ab3956838ef1cd32140e9719d21.zip |
UserspaceEmulator: Flush stdout in SoftCPU::dump()
This makes the CPU dump output interleave correctly with instructions.
-rw-r--r-- | DevTools/UserspaceEmulator/SoftCPU.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/DevTools/UserspaceEmulator/SoftCPU.cpp b/DevTools/UserspaceEmulator/SoftCPU.cpp index 6d80229418..c32295ca2f 100644 --- a/DevTools/UserspaceEmulator/SoftCPU.cpp +++ b/DevTools/UserspaceEmulator/SoftCPU.cpp @@ -86,6 +86,7 @@ void SoftCPU::dump() const printf("o=%u s=%u z=%u a=%u p=%u c=%u\n", of(), sf(), zf(), af(), pf(), cf()); printf("#ax=%08x #bx=%08x #cx=%08x #dx=%08x ", eax().shadow(), ebx().shadow(), ecx().shadow(), edx().shadow()); printf("#bp=%08x #sp=%08x #si=%08x #di=%08x\n", ebp().shadow(), esp().shadow(), esi().shadow(), edi().shadow()); + fflush(stdout); } void SoftCPU::did_receive_secret_data() |