From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2182 invoked by alias); 14 Jul 2002 18:00:39 -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 2175 invoked from network); 14 Jul 2002 18:00:38 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 14 Jul 2002 18:00:38 -0000 Received: from dsl254-114-096.nyc1.dsl.speakeasy.net ([216.254.114.96] helo=nevyn.them.org) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17Tnfg-0004To-00; Sun, 14 Jul 2002 13:00:36 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17Tnfg-000895-00; Sun, 14 Jul 2002 14:00:36 -0400 Date: Sun, 14 Jul 2002 11:01:00 -0000 From: Daniel Jacobowitz To: Andrew Cagney Cc: Johan Rydberg , gdb-patches@sources.redhat.com Subject: Re: [PATCH] remote_rcmd Message-ID: <20020714180035.GA31167@nevyn.them.org> Mail-Followup-To: Andrew Cagney , Johan Rydberg , gdb-patches@sources.redhat.com References: <20020627035114.M1899@cockmaster.bredbandsbolaget.se> <3D31A763.7020904@ges.redhat.com> <20020714173945.GB30061@nevyn.them.org> <3D31B976.5080700@ges.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D31B976.5080700@ges.redhat.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-07/txt/msg00311.txt.bz2 On Sun, Jul 14, 2002 at 01:48:38PM -0400, Andrew Cagney wrote: > > > >Actually, the current docs suggest: > > > >-> qRcmd command > ><- O > ><- O > ><- > ><- OK > > Where? COMMAND (hex encoded) is passed to the local interpreter for execution. Invalid commands should be reported using the output string. Before the final result packet, the target may also respond with number of intermediate `O'OUTPUT console output packets. ... reply OUTPUT A command response with the hex encoded output string OUTPUT. > >which confuses me. What's supposed to differentiate the O > >packets from the final packet (what difference in purpose, > >I mean)? > > Valid replies to ``qRcmd'' are: > > ``OK'' > ``'' > ``'' > ``Enn'' > > The ``O'' packet is something separate. I think I wasn't clear in my question. qRcmd can send some O packets, which are supposed to provide some ambiguous form of "output" from the "console", and then one packet. What is supposed to go in which? It doesn't make sense to me to limit this to one packet if it is arbitrary output; it may simply be too large. On the other hand I'm not sure I see why both O and are allowed. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer