From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28055 invoked by alias); 19 Apr 2012 15:28:05 -0000 Received: (qmail 28047 invoked by uid 22791); 19 Apr 2012 15:28:04 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout23.012.net.il (HELO mtaout23.012.net.il) (80.179.55.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 19 Apr 2012 15:27:27 +0000 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0M2Q00100G4EG600@a-mtaout23.012.net.il> for gdb-patches@sourceware.org; Thu, 19 Apr 2012 18:26:28 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.228.105.225]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M2Q001URG83BDB0@a-mtaout23.012.net.il>; Thu, 19 Apr 2012 18:26:28 +0300 (IDT) Date: Thu, 19 Apr 2012 15:34:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH v2] Add autoload-breakpoints [6/6] autoload-breakpoints doc In-reply-to: <4F9005A3.2010008@mentor.com> To: Hui Zhu Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83wr5bivyz.fsf@gnu.org> References: <4F8562EE.6080306@mentor.com> <4F8E9D3A.5000809@mentor.com> <834nsgkh28.fsf@gnu.org> <4F9005A3.2010008@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-04/txt/msg00631.txt.bz2 > Date: Thu, 19 Apr 2012 20:31:31 +0800 > From: Hui Zhu > CC: > > >> +@item @var{id}@samp{:}@samp{R} > >> +This is the remove packet. > >> +@var{id} is the number of the autoload-breakpoint that this command > >> +wants to remove, encoded as a hex string. > >> +@value{GDBN} will remove this breakpoint as it have been removed in > >> +the target. > > > > I don't understand the last sentence. Please explain. > > > >> So when the target remove the breakpoint, it need remove > >> +this breakpoint with itself. ^^^^^^ ^^^^^^^^^^^ > > ^^^^^^^^^^^ > > "removes", "needs to remove", and "by itself". > > > > By the way, what non-trivial information does this sentence convey? > > It seems to say "when the target removes the breakpoint, it needs to > > remove the breakpoint", which is trivial. What am I missing here? > > This part is not very clear. What about following part? > > When @value{GDBN} get this packet, it will delete this breakpoint > as it have been removed in the target. So when the target send > this packet, it needs to remove these breakpoints in local part by itself. Who is sending this packet, the target or GDB? I understand that the target sends it, because you say "when GDB gets this packet". But if the target sends this packet, then it should be quite clear that it (the target) should delete the breakpoint. In fact, I would expect the packet to be a side effect of deletion on the target side. Is the above correct?