From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23033 invoked by alias); 1 Jul 2005 19:42:20 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 22949 invoked by uid 22791); 1 Jul 2005 19:42:15 -0000 Received: from biscayne-one-station.mit.edu (HELO biscayne-one-station.mit.edu) (18.7.7.80) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 01 Jul 2005 19:42:15 +0000 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by biscayne-one-station.mit.edu (8.12.4/8.9.2) with ESMTP id j61JgDF8021447 for ; Fri, 1 Jul 2005 15:42:13 -0400 (EDT) Received: from scrubbing-bubbles.mit.edu (SCRUBBING-BUBBLES.MIT.EDU [18.7.16.68]) (authenticated bits=56) (User authenticated as nathanw@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.1/8.12.4) with ESMTP id j61Jg6Bx014216 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 1 Jul 2005 15:42:07 -0400 (EDT) Received: (from nathanw@localhost) by scrubbing-bubbles.mit.edu (8.12.9) id j61Jg6XC006471; Fri, 1 Jul 2005 15:42:06 -0400 (EDT) To: gdb-patches@sources.redhat.com Subject: [RFA/doc] GDB remote target waits for a response when detaching. From: nathanw@MIT.EDU (Nathan J. Williams) Date: Fri, 01 Jul 2005 19:42:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.599 X-Spam-Flag: NO X-SW-Source: 2005-07/txt/msg00008.txt.bz2 The documentation of the remote protocol says: GDB does not check for any response after sending this packet but this isn't true. remote_detach() calls remote_send(), which calls getpkt() and signals an error if the result starts with 'E'. This seems to have been true "forever", or at least back to the beginning of CVS. OK to commit this doc change? - Nathan * gdb.texinfo (Packets): Change description of 'D' packet to note that GDB does wait for a response. Index: gdb.texinfo =================================================================== RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v retrieving revision 1.271 diff -u -r1.271 gdb.texinfo --- gdb.texinfo 22 Jun 2005 06:20:00 -0000 1.271 +++ gdb.texinfo 1 Jul 2005 19:36:46 -0000 @@ -22058,8 +22058,10 @@ Reply: @table @samp -@item @emph{no response} -@value{GDBN} does not check for any response after sending this packet. +@item OK +for success +@item E@var{NN} +for an error @end table @item @code{e} --- reserved