This is the mail archive of the
mailing list for the GDB project.
Re: printfs output in wrong order in MI
On Thu, Apr 13, 2006 at 12:25:45PM +0300, Eli Zaretskii wrote:
> > I think it's reasonable to expect that *all* output of command
> > wrapped in "-interpreter-exec console" would appears before the
> > "^done" marker.
> Is it? I wouldn't know; I'll let other front-end gurus to comment on
Suppose you define a user defined command with multiple printfs; even
from MI, we don't need to (or want to) flush between them. But when
-interpreter-exec return ^done, it ought to be ^done. Flushing the
output streams explicitly before then seems like a good idea to me.