From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3751 invoked by alias); 6 May 2006 03:14:09 -0000 Received: (qmail 3742 invoked by uid 22791); 6 May 2006 03:14:08 -0000 X-Spam-Check-By: sourceware.org Received: from eastrmmtao03.cox.net (HELO eastrmmtao03.cox.net) (68.230.240.36) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 06 May 2006 03:14:06 +0000 Received: from localhost.localdomain ([68.9.66.48]) by eastrmmtao03.cox.net (InterMail vM.6.01.06.01 201-2131-130-101-20060113) with ESMTP id <20060506031403.JQFO15797.eastrmmtao03.cox.net@localhost.localdomain> for ; Fri, 5 May 2006 23:14:03 -0400 Received: from bob by localhost.localdomain with local (Exim 4.52) id 1FcDFb-0000Cw-Cd for gdb@sources.redhat.com; Fri, 05 May 2006 23:14:35 -0400 Date: Sat, 06 May 2006 03:14:00 -0000 From: Bob Rossi To: gdb@sources.redhat.com Subject: Re: asynchronous MI output commands Message-ID: <20060506031435.GE25114@brasko.net> Mail-Followup-To: gdb@sources.redhat.com References: <20060506012706.GA25114@brasko.net> <20060506015903.GA13095@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060506015903.GA13095@nevyn.them.org> User-Agent: Mutt/1.5.9i 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-05/txt/msg00043.txt.bz2 On Fri, May 05, 2006 at 09:59:03PM -0400, Daniel Jacobowitz wrote: > On Fri, May 05, 2006 at 09:27:06PM -0400, Bob Rossi wrote: > > The first problem that I've run into is determining if an MI output > > command is synchronous or asynchronous. I can tell if the MI output > > command is asynchronous by looking for, reason="abc", like below, > > 47*stopped,reason="end-stepping-range",thread-id="0", ... > > `ASYNC-RECORD ==>' > `EXEC-ASYNC-OUTPUT | STATUS-ASYNC-OUTPUT | NOTIFY-ASYNC-OUTPUT' > > `EXEC-ASYNC-OUTPUT ==>' > `[ TOKEN ] "*" ASYNC-OUTPUT' > > `STATUS-ASYNC-OUTPUT ==>' > `[ TOKEN ] "+" ASYNC-OUTPUT' > > `NOTIFY-ASYNC-OUTPUT ==>' > `[ TOKEN ] "=" ASYNC-OUTPUT' > > Why can't you tell that output is asynchronous from the *stopped, as > opposed to ^done? Also, what about this case? ~"GNU gdb 6.1-debian\n" ~"Copyright 2004 Free Software Foundation, Inc.\n" ~"GDB is free software, covered by the GNU General Public License, and you are\n" ~"welcome to change it and/or distribute copies of it under certain conditions.\n" ~"Type \"show copying\" to see the conditions.\n" ~"There is absolutely no warranty for GDB. Type \"show warranty\" for details.\n" ~"This GDB was configured as \"i386-linux\"..." ~"Using host libthread_db library \"/lib/libthread_db.so.1\".\n" ~"\n" (gdb) Is this considered synchronous or asynchronous? I consider it asynchronous, and I don't have any way to tell that except check to see if the parse tree has nothing but stream messages. What do you think? Thanks, Bob Rossi