From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3396 invoked by alias); 14 Apr 2006 13:17:48 -0000 Received: (qmail 3381 invoked by uid 22791); 14 Apr 2006 13:17:48 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Fri, 14 Apr 2006 13:17:45 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FUOBB-0003YI-Rp; Fri, 14 Apr 2006 09:17:41 -0400 Date: Fri, 14 Apr 2006 13:38:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: Vladimir Prus , gdb@sources.redhat.com Subject: Re: printfs output in wrong order in MI Message-ID: <20060414131741.GD12955@nevyn.them.org> Mail-Followup-To: Eli Zaretskii , Vladimir Prus , gdb@sources.redhat.com References: <200604131201.58613.ghost@cs.msu.su> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-04/txt/msg00184.txt.bz2 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 > that. I agree. 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. -- Daniel Jacobowitz CodeSourcery