From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1427 invoked by alias); 21 Mar 2012 18:28:42 -0000 Received: (qmail 1410 invoked by uid 22791); 21 Mar 2012 18:28:38 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout22.012.net.il (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 21 Mar 2012 18:28:12 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M1800800Z7GNF00@a-mtaout22.012.net.il> for gdb-patches@sourceware.org; Wed, 21 Mar 2012 20:27:52 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.228.0.19]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M18008HNZAFLF10@a-mtaout22.012.net.il>; Wed, 21 Mar 2012 20:27:52 +0200 (IST) Date: Wed, 21 Mar 2012 18:28:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH] Add autoload-breakpoints [3/7] ReportAsync-doc In-reply-to: <4F6981D6.9040807@mentor.com> To: Hui Zhu Cc: gdb-patches@sourceware.org, stan_shebs@mentor.com Reply-to: Eli Zaretskii Message-id: <83fwd124ia.fsf@gnu.org> References: <4F6450D2.9030109@mentor.com> <83y5qz359r.fsf@gnu.org> <4F688533.1050705@mentor.com> <83obrr18pf.fsf@gnu.org> <4F6981D6.9040807@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/msg00782.txt.bz2 > Date: Wed, 21 Mar 2012 15:23:02 +0800 > From: Hui Zhu > CC: , > > >>>> +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? > >> > >> It is means that after gdb connected with the stub, the stub can report > >> when the inferior is running and GDB is waiting it, or inferior is > >> stoped and GDB just control it. > >> It make the stub can report the status for any time. > > > > You mean, as in "asynchronously"? > > Yes, that is my mean. Then please use The @value{GDBN} remote serial protocol supports @dfn{reportasync} that can be used asynchronously to report status or send commands. > > I still don't understand why you used the word "simple". "Simple" as > > opposed to what other packet handling? > > Maybe "normal" is better. "Normal" as opposed to reportasync packets. "As usual" or "usual" would be better. But see below. > >>> 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. > >> > >> No, this is for success. > > > > The problem here is that you again used "simple protocol", and before > > that you mentioned "simple packet" when the handshake failed. > > > > So this again boils down to the same question: why do you use the word > > "simple" in this context? > > Yes, it looks really odd even if change it to normal. That is because > after shakes mode, the packet will use the normal format But you said After the handshake, the stub can send @samp{reportasync} packets to @value{GDBN}, using the same packet format as in simple remote serial protocol. which actually tells me that the "normal" packets are _not_ in contrast with reportasync packets, since reportasync packets can be sent in the "normal format". What am I missing?