From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23739 invoked by alias); 26 Apr 2011 11:01:53 -0000 Received: (qmail 23728 invoked by uid 22791); 26 Apr 2011 11:01:52 -0000 X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=BAYES_05 X-Spam-Check-By: sourceware.org Received: from mail.serverraum.org (HELO mail.serverraum.org) (78.47.150.89) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 26 Apr 2011 11:01:30 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.serverraum.org (Postfix) with ESMTP id 7AC8F3EF24; Tue, 26 Apr 2011 13:01:29 +0200 (CEST) Received: from mail.serverraum.org ([127.0.0.1]) by localhost (web.serverraum.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Rw9Nmb4mli15; Tue, 26 Apr 2011 13:01:28 +0200 (CEST) Received: from ssl.serverraum.org (localhost [127.0.0.1]) by mail.serverraum.org (Postfix) with ESMTP id 5B6213EF1D; Tue, 26 Apr 2011 13:01:28 +0200 (CEST) Received: from 87.139.116.114 (SquirrelMail authenticated user michael@walle.cc) by ssl.serverraum.org with HTTP; Tue, 26 Apr 2011 13:01:28 +0200 (CEST) Message-ID: <6914d7cfa29760c41da8bc762dc39577.squirrel@ssl.serverraum.org> In-Reply-To: <201104051710.10938.pedro@codesourcery.com> References: <201104042200.15473.michael@walle.cc> <201104042121.22036.pedro@codesourcery.com> <201104042238.32058.michael@walle.cc> <201104051710.10938.pedro@codesourcery.com> Date: Tue, 26 Apr 2011 11:01:00 -0000 Subject: Re: [PATCH] remote target interrupt before ack From: "Michael Walle" To: "Pedro Alves" Cc: gdb-patches@sourceware.org, "Michael Walle" User-Agent: SquirrelMail/1.4.15 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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: 2011-04/txt/msg00470.txt.bz2 Am Di, 5.04.2011, 18:10, schrieb Pedro Alves: > On Monday 04 April 2011 21:38:32, Michael Walle wrote: >> Am Montag 04 April 2011, 22:21:21 schrieb Pedro Alves: >> > On Monday 04 April 2011 21:00:15, Michael Walle wrote: >> > > the following patch puts the sending of the interrupt/break sequence >> > > before the proforma ACK. This guarantees the ACK won't be delivered >> to >> > > an application on the remote side. >> >> > >> > Can you explain what the latter sentence means a bit better? >> > >> Oh, i forgot to mention that this bug affects serial lines which are >> shared >> with the GDB stub. Assume the remote needs a BREAK to start its gdb >> stub. If >> you send the '+' before the BREAK it will be delivered to the actual >> application running on the device (and of course listening on the serial >> port). [If there happens to be some echo service things will even go >> worse, >> because the echoed '+' will be interpreted by GDB as an ACK to the first >> sent >> packet.] > > Okay, makes sense. I figured it was something like that, but doesn't hurt > to be explicit so we don't have to guess, and for the benefit of > the archives. > > Patch is okay, thanks. Any news on merging this patch? -- Michael