From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2190 invoked by alias); 2 Apr 2012 09:10:21 -0000 Received: (qmail 2179 invoked by uid 22791); 2 Apr 2012 09:10:19 -0000 X-SWARE-Spam-Status: No, hits=-4.1 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 02 Apr 2012 09:10:05 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1SEdH1-0004KN-Jo from Hui_Zhu@mentor.com ; Mon, 02 Apr 2012 02:10:03 -0700 Received: from SVR-ORW-FEM-04.mgc.mentorg.com ([147.34.97.41]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Mon, 2 Apr 2012 02:10:03 -0700 Received: from [127.0.0.1] (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.1.289.1; Mon, 2 Apr 2012 02:10:02 -0700 Message-ID: <4F796CE8.3090405@mentor.com> Date: Mon, 02 Apr 2012 09:10:00 -0000 From: Hui Zhu User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120310 Thunderbird/11.0 MIME-Version: 1.0 To: Eli Zaretskii CC: , Subject: Re: [PATCH] Add autoload-breakpoints [3/7] ReportAsync-doc References: <4F6450D2.9030109@mentor.com> <83y5qz359r.fsf@gnu.org> <4F688533.1050705@mentor.com> <83obrr18pf.fsf@gnu.org> <4F6981D6.9040807@mentor.com> <83fwd124ia.fsf@gnu.org> <4F6A92F7.6090500@mentor.com> <4F6FD290.1070704@mentor.com> <83k421z4qk.fsf@gnu.org> In-Reply-To: <83k421z4qk.fsf@gnu.org> Content-Type: multipart/mixed; boundary="------------010500070007050501080300" 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-04/txt/msg00010.txt.bz2 --------------010500070007050501080300 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Content-length: 703 On 03/31/12 14:03, Eli Zaretskii wrote: >> Date: Mon, 26 Mar 2012 10:21:04 +0800 >> From: Hui Zhu >> CC:, >> >> +When the stub want send @dfn{reportasync} packets, it send shake hands >> +packet @samp{^} to @value{GDBN}. > > When the stub wants to send @dfn{reportasync} packets, it should > first send a handshake packet @samp{^} to @value{GDBN}. > > OK with this change. > > Thanks. Thanks for your help. I post a new version that is updated according to your comments. Best, Hui 2012-04-02 Hui Zhu * gdb.texinfo (qSupported): Add ReportAsync. (Remote Serial Protocol): Add ReportAsync Packets. --------------010500070007050501080300 Content-Type: text/plain; charset="us-ascii"; name="report-doc.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="report-doc.txt" Content-length: 1571 --- doc/gdb.texinfo | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) --- a/doc/gdb.texinfo +++ b/doc/gdb.texinfo @@ -33669,6 +33669,7 @@ Show the current setting of the target w * Host I/O Packets:: * Interrupts:: * Notification Packets:: +* ReportAsync Packets:: * Remote Non-Stop:: * Packet Acknowledgment:: * Examples:: @@ -35575,6 +35576,10 @@ to be enabled and disabled while a trace The remote stub supports the @samp{tracenz} bytecode for collecting strings. See @ref{Bytecode Descriptions} for details about the bytecode. +@item ReportAsync +The remote stub supports the @samp{ReportAsync} packet +(@pxref{ReportAsync Packets}). + @end table @item qSymbol:: @@ -36672,6 +36677,24 @@ for information on how these notificatio @value{GDBN}. @end table +@node ReportAsync Packets +@section ReportAsync Packets +@cindex reportasync packets +@cindex packets, reportasync + +The @value{GDBN} remote serial protocol supports @dfn{reportasync} +that can be used asynchronously to report status or send commands. + +When the stub wants to send @dfn{reportasync} packets, it should +first send a handshake packet @samp{^} to @value{GDBN}. +If @value{GDBN} replies with a @samp{^}, the handshake is successful. +If not, the handshake fails, and the @samp{reportasync} packet needs +to be handled as usual. + +After the handshake, the stub can send @samp{reportasync} packets to +@value{GDBN}, using the same packet format as in normal remote serial +protocol. + @node Remote Non-Stop @section Remote Protocol Support for Non-Stop Mode --------------010500070007050501080300--