From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18372 invoked by alias); 25 Jun 2012 13:41:33 -0000 Received: (qmail 18288 invoked by uid 22791); 25 Jun 2012 13:41:32 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED 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 13:40:53 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 498052F7800A for ; Mon, 25 Jun 2012 14:40:52 +0100 (BST) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V547l+OBYqHc; Mon, 25 Jun 2012 14:40:46 +0100 (BST) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-bugs@ecos.sourceware.org Subject: [Bug 1001614] eCos GDB stub "detach" reply incompatible with GDB 7.4.1 X-Bugzilla-Reason: CC 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: john@dallaway.org.uk X-Bugzilla-Status: MODIFIED X-Bugzilla-Priority: normal X-Bugzilla-Assigned-To: jifl@ecoscentric.com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status 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 13:41:00 -0000 Message-Id: <20120625134045.EEAC32F78006@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/msg01050.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 John Dallaway changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |MODIFIED --- Comment #3 from John Dallaway 2012-06-25 14:40:43 BST --- (In reply to comment #2) > 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? It is not still the case. GDB 7.4.1 is apparently left in the same state as if the detach command had not been issued: (gdb) tar rem /dev/ttyS0 Remote debugging using /dev/ttyS0 0x01003688 in ?? () (gdb) det Remote doesn't know how to detach (gdb) tar rem /dev/ttyS0 A program is being debugged already. Kill it? (y or n) y Remote debugging using /dev/ttyS0 0x01003688 in ?? () (gdb) det Remote doesn't know how to detach (gdb) q A debugging session is active. Inferior 1 [Remote target] will be killed. Quit anyway? (y or n) y > 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. The rationale for the patch is just to allow us to work with eCos stubs and GDB 4.7.1 without the confusing messages and prompts shown above. Can you suggest a better approach? I note that some JTAG debuggers allow the interpretation of the GDB detach command to be configured (resume execution, reset, halt, nothing) but they always reply "OK". -- Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.