printf: with multiple call some printf do not print to console.
by example printf("%ld item is %ld \n", i, x); from o to 100
print some of the first 50 and skip all other
Using
fflush(stdout);
setbuf(stdout, NULL);
setlinebuf(stdout);
after each printf does nothing.
stepping is assembly (one instruction at time, Qemu) work correctly most of the time.
But it happen that “step” command (F6) do not stop after the instruction (instruction is not branch or jump).
In loop stop happen anywhere in loop code (after or before).
Instructions after the stepped instruction are executed correctly but “step” do not stop after the stepped instruction.
I’m not seeing this behavior running the latest qemu package I have (which is not released yet) using an example for loop as you mentioned. What qemu version and which bsp are you using?
Hi Alain, It turns out that the problem you are seeing is unrelated to the one I found. We haven’t been able to reproduce your issue yet. We see full and reliable console output using that version of QEMU. Can you specify which BSP you are using, fro instance from this list?
About step issue: don’t use editor to debug.
Open a “Disassembly” window and click the “Link with Active Debug Context”.
Debug only with this window. Set breakpoint, watchpoint and step only there.
Within the “Disassembly” window step work correctly.