From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9063 invoked by alias); 17 Mar 2012 10:12:49 -0000 Received: (qmail 9055 invoked by uid 22791); 17 Mar 2012 10:12:48 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout21.012.net.il (HELO mtaout21.012.net.il) (80.179.55.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 17 Mar 2012 10:12:35 +0000 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0M1000500XNX4T00@a-mtaout21.012.net.il> for gdb-patches@sourceware.org; Sat, 17 Mar 2012 12:12:34 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.59.89]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M1000582XOX1680@a-mtaout21.012.net.il>; Sat, 17 Mar 2012 12:12:33 +0200 (IST) Date: Sat, 17 Mar 2012 10:12:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH] Add autoload-breakpoints [3/7] ReportAsync-doc In-reply-to: <4F6450D2.9030109@mentor.com> To: Hui Zhu Cc: gdb-patches@sourceware.org, stan_shebs@mentor.com Reply-to: Eli Zaretskii Message-id: <83y5qz359r.fsf@gnu.org> References: <4F6450D2.9030109@mentor.com> X-IsSubscribed: yes 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: 2012-03/txt/msg00660.txt.bz2 > Date: Sat, 17 Mar 2012 16:52:34 +0800 > From: Hui Zhu > CC: Stan Shebs > > This is patch for the doc about ReportAsync. Thanks. > +The @value{GDBN} remote serial protocol includes @dfn{reportasync}, > +packets that the stub can report status or do an operation in any time. I don't understand the "do an operation in any time" part. What does it mean in practice? > +When the stub want send @dfn{reportasync} packets, it send shake hands > +packet @samp{^} to @value{GDBN}. When the stub wants to send a @samp{reportasync} packet, it first sends a handshake packet @samp{^} to @value{GDBN}. > +If @value{GDBN} reply a @samp{^}, the shake hands is successful. If @value{GDBN} replies with a @samp{^}, the handshake is successful. > +If not, the shake hands is fail and this packet need to be handle > +as a simple packet. If not, the handshake fails, and the @samp{reportasync} packet needs to be handled as a simple packet. And I don't understand what you mean by "needs to be handled as a simple packet". If that's a reference to something discussed earlier in the manual, please add here a cross-reference to that part. > +After shake hands, the stub can send packet to @value{GDBN}, the packet > +format is same with simple remote serial protocol. After the handshake, the stub can send @samp{reportasync} packets to @value{GDBN}, using the same packet format as in simple remote serial protocol. Is this only for the failed handshake? If so, perhaps we need to tell what happens when the handshake succeeds.