From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19426 invoked by alias); 17 Dec 2009 14:01:16 -0000 Received: (qmail 19191 invoked by uid 22791); 17 Dec 2009 14:01:15 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 17 Dec 2009 14:01:12 +0000 Received: (qmail 24322 invoked from network); 17 Dec 2009 14:01:10 -0000 Received: from unknown (HELO wind.localnet) (vladimir@127.0.0.2) by mail.codesourcery.com with ESMTPA; 17 Dec 2009 14:01:10 -0000 From: Vladimir Prus To: Daniel Jacobowitz Subject: Re: [MI, doc] flush output in -gdb-exit Date: Thu, 17 Dec 2009 14:01:00 -0000 User-Agent: KMail/1.12.2 (Linux/2.6.31-14-generic-pae; KDE/4.3.2; i686; ; ) Cc: gdb-patches@sourceware.org References: <200912171046.03355.vladimir@codesourcery.com> <20091217131332.GA15129@caradoc.them.org> In-Reply-To: <20091217131332.GA15129@caradoc.them.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200912171701.07265.vladimir@codesourcery.com> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-12/txt/msg00227.txt.bz2 On Thursday 17 December 2009 16:13:32 Daniel Jacobowitz wrote: > On Thu, Dec 17, 2009 at 10:46:03AM +0300, Vladimir Prus wrote: > > > > I've noticed that under frontend, -gdb-exit may "timeout", even though it sends "^exit" > > immediately. There was a flush missing. This patch adds it, and clarifies that frontend > > should wait for GDB to actually exit, not just acknoledge the request. > > > > OK? > > This is OK (with changelog), although I don't see why it's necessary - > when we exit, shouldn't that flush stdout? It flushes stdout. However, it seems to my more convenient -- especially when debugging frontend, if command response comes as soon as possible. - Volodya