From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3619 invoked by alias); 25 Jun 2012 12:29:40 -0000 Received: (qmail 3608 invoked by uid 22791); 25 Jun 2012 12:29:39 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 25 Jun 2012 12:28:57 +0000 Received: by mail.ecoscentric.com (Postfix, from userid 48) id AF3802F78006; Mon, 25 Jun 2012 13:28:55 +0100 (BST) From: bugzilla-daemon@bugs.ecos.sourceware.org To: unassigned@bugs.ecos.sourceware.org Subject: [Bug 1001614] eCos GDB stub "detach" reply incompatible with GDB 7.4.1 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: GDB stubs X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jifl@ecoscentric.com X-Bugzilla-Status: NEEDINFO X-Bugzilla-Priority: normal X-Bugzilla-Assigned-To: jifl@ecoscentric.com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status CC AssignedTo In-Reply-To: References: X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Mon, 25 Jun 2012 12:29:00 -0000 Message-Id: <20120625122847.E3ADB2F78006@mail.ecoscentric.com> Mailing-List: contact ecos-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-bugs-owner@sourceware.org X-SW-Source: 2012/txt/msg01048.txt.bz2 Please do not reply to this email. Use the web interface provided at: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001614 Jonathan Larmour changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |jifl@ecoscentric.com AssignedTo|unassigned@bugs.ecos.source |jifl@ecoscentric.com |ware.org | --- Comment #2 from Jonathan Larmour 2012-06-25 13:28:42 BST --- The patch isn't right. GDB is correct - the remote side doesn't know how to detach, hence the "null" packet rather than OK. In all versions of GDB to date, GDB will stop talking to the target (closing tcp socket if needed) anyway. I assume that is still the case in 7.4.1? e.g. if you try and quit gdb, it won't complain it is still attached to the target. For that reason at present we treat detach the same as 'kill', which this patch wouldn't change. We treat it as 'kill' because it's arguably better to potentially return to redboot (if applicable) than just get stuck forever in the stub until a manual reset. We could make a few changes to support detach properly with I think a bit of extra code and a little global data, but is this an important enough feature to add if no-one actually uses it the way it's intended? Presumably you don't actually need the correct behaviour since this patch would continue to make it identical to 'kill', as all this patch does is silence the message. Jifl -- Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.