GDB console can't show the result of printf
<p>I'm using gdb in RedHat to debug C++ code. To better debug my code, I added <code>printf("XXX")</code>.  </p>

<p>However, after the execution of <code>printf("XXX")</code>, the gdb console didn't show XXX.  </p>

<p>Other parts of my code works fine.</p>