Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA/doc] GDB remote target waits for a response when detaching.
@ 2005-07-01 19:42 Nathan J. Williams
  2005-07-01 20:15 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Nathan J. Williams @ 2005-07-01 19:42 UTC (permalink / raw)
  To: gdb-patches


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [RFA/doc] GDB remote target waits for a response when detaching.
  2005-07-01 19:42 [RFA/doc] GDB remote target waits for a response when detaching Nathan J. Williams
@ 2005-07-01 20:15 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2005-07-01 20:15 UTC (permalink / raw)
  To: Nathan J. Williams; +Cc: gdb-patches

> From: nathanw@MIT.EDU (Nathan J. Williams)
> Date: 01 Jul 2005 15:42:06 -0400
> 
> 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?

Yes, thanks.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-01 20:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-01 19:42 [RFA/doc] GDB remote target waits for a response when detaching Nathan J. Williams
2005-07-01 20:15 ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox