From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12441 invoked by alias); 23 Aug 2002 20:29:58 -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 12434 invoked from network); 23 Aug 2002 20:29:57 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 23 Aug 2002 20:29:57 -0000 Received: from ges.redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 074A93ED5; Fri, 23 Aug 2002 16:29:54 -0400 (EDT) Message-ID: <3D669B41.50809@ges.redhat.com> Date: Fri, 23 Aug 2002 13:32:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020810 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Jacobowitz Cc: gdb-patches@sources.redhat.com Subject: Re: [rfa:doco] switch <- and -> in remote examples References: <3D6697A1.6010001@ges.redhat.com> <20020823202405.GA30960@nevyn.them.org> Content-Type: multipart/mixed; boundary="------------000502030005020304030403" X-SW-Source: 2002-08/txt/msg00771.txt.bz2 This is a multi-part message in MIME format. --------------000502030005020304030403 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 385 > On Fri, Aug 23, 2002 at 04:14:25PM -0400, Andrew Cagney wrote: > >> Hello, >> >> This patch just switches the use of <- and -> in the remote protocol >> example. I think it reads better vis: >> >> -> Z? >> <- OK >> >> (well at least for a left to right reader :-/). > > > (No patch, but) I agree. -> should be what the client is sending, > since it's a client manual. > --------------000502030005020304030403 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 2662 2002-08-23 Andrew Cagney * gdb.texinfo (Examples): Use ``->'' for a packet send and ``<-'' for a packet receive. Index: doc/gdb.texinfo =================================================================== RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v retrieving revision 1.114 diff -p -r1.114 gdb.texinfo *** doc/gdb.texinfo 19 Aug 2002 22:09:03 -0000 1.114 --- doc/gdb.texinfo 23 Aug 2002 20:06:34 -0000 *************** protocol---for example, if there is only *** 14248,14254 **** machine, you might want your program to do something special if it recognizes a packet meant for @value{GDBN}. ! In the examples below, @samp{<-} and @samp{->} are used to indicate transmitted and received data respectfully. @cindex protocol, @value{GDBN} remote serial --- 14248,14254 ---- machine, you might want your program to do something special if it recognizes a packet meant for @value{GDBN}. ! In the examples below, @samp{->} and @samp{<-} are used to indicate transmitted and received data respectfully. @cindex protocol, @value{GDBN} remote serial *************** the package was received correctly) or @ *** 14290,14297 **** retransmission): @smallexample ! <- @code{$}@var{packet-data}@code{#}@var{checksum} ! -> @code{+} @end smallexample @noindent --- 14290,14297 ---- retransmission): @smallexample ! -> @code{$}@var{packet-data}@code{#}@var{checksum} ! <- @code{+} @end smallexample @noindent *************** Example sequence of a target being re-st *** 15082,15110 **** does not get any direct output: @smallexample ! <- @code{R00} ! -> @code{+} @emph{target restarts} ! <- @code{?} ! -> @code{+} ! -> @code{T001:1234123412341234} <- @code{+} @end smallexample Example sequence of a target being stepped by a single instruction: @smallexample ! <- @code{G1445@dots{}} ! -> @code{+} ! <- @code{s} ! -> @code{+} ! @emph{time passes} ! -> @code{T001:1234123412341234} <- @code{+} ! <- @code{g} -> @code{+} ! -> @code{1455@dots{}} <- @code{+} @end smallexample @include gpl.texi --- 15082,15110 ---- does not get any direct output: @smallexample ! -> @code{R00} ! <- @code{+} @emph{target restarts} ! -> @code{?} <- @code{+} + <- @code{T001:1234123412341234} + -> @code{+} @end smallexample Example sequence of a target being stepped by a single instruction: @smallexample ! -> @code{G1445@dots{}} <- @code{+} ! -> @code{s} ! <- @code{+} ! @emph{time passes} ! <- @code{T001:1234123412341234} -> @code{+} ! -> @code{g} <- @code{+} + <- @code{1455@dots{}} + -> @code{+} @end smallexample @include gpl.texi --------------000502030005020304030403--