From 48eec58bdc4e3ab3956838ef1cd32140e9719d21 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 21 Jul 2020 16:36:15 +0200 Subject: UserspaceEmulator: Flush stdout in SoftCPU::dump() This makes the CPU dump output interleave correctly with instructions. --- DevTools/UserspaceEmulator/SoftCPU.cpp | 1 + 1 file changed, 1 insertion(+) 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() -- cgit v1.2.3