From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13053 invoked by alias); 13 Aug 2005 17:26:26 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 13019 invoked by uid 22791); 13 Aug 2005 17:26:20 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sat, 13 Aug 2005 17:26:20 +0000 Received: from drow by nevyn.them.org with local (Exim 4.52) id 1E3zlz-0005Gm-0j for gdb-patches@sources.redhat.com; Sat, 13 Aug 2005 13:26:19 -0400 Date: Sat, 13 Aug 2005 21:41:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Subject: Re: MI testsuite to use PTY for inferior Message-ID: <20050813172618.GA20221@nevyn.them.org> Mail-Followup-To: gdb-patches@sources.redhat.com References: <20050801113002.GB24853@white> <200508011901.j71J1i1w026583@elgar.sibelius.xs4all.nl> <20050801205242.GA20064@nevyn.them.org> <20050802035020.GA18143@nevyn.them.org> <20050802204750.GA14919@nevyn.them.org> <20050813165518.GA568@white> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050813165518.GA568@white> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-08/txt/msg00161.txt.bz2 On Sat, Aug 13, 2005 at 12:55:18PM -0400, Bob Rossi wrote: > In this way, the FE can still break the output into lines, and it can > strcmp the line to determine if the output is from GDB or the inferior. > The "unique-key" takes care of the case where you are actually debugging > GDB, because once the FE get's the '=inferior-starting unique-key' line, > it doesn't care how many =inferior-started or =inferior-stopped lines > get sent out until the key matches. > > This sounds like a very simple solution. What does everyone think? MI is supposed to (eventually at least) accept some commands while the inferior is running. I think this would break that, and add much complexity. They're different streams logically; we should separate them, not invest more effort in interleaving them. -- Daniel Jacobowitz CodeSourcery, LLC