Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [rfa/doc] Add section on interrupts to remote protocol documentation
@ 2005-11-18  5:59 Kevin Buettner
  2005-11-18  8:35 ` Jim Blandy
  2005-11-18 14:06 ` Eli Zaretskii
  0 siblings, 2 replies; 17+ messages in thread
From: Kevin Buettner @ 2005-11-18  5:59 UTC (permalink / raw)
  To: gdb-patches

The patch below adds a new section about interrupts to the remote protocol
documentation.  A discussion on gdb@ may be found starting here:

    http://sources.redhat.com/ml/gdb/2005-11/msg00347.html

Okay?

	* gdb.texinfo (set remotebreak): Add anchor.
	(Remote Protocol): Add new section `Interrupts'.

Index: gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.293
diff -u -p -r1.293 gdb.texinfo
--- gdb.texinfo	17 Nov 2005 19:08:38 -0000	1.293
+++ gdb.texinfo	18 Nov 2005 02:44:52 -0000
@@ -12147,6 +12147,7 @@ Show the current speed of the remote con
 @item set remotebreak
 @cindex interrupt remote programs
 @cindex BREAK signal instead of Ctrl-C
+@anchor{set remotebreak}
 If set to on, @value{GDBN} sends a @code{BREAK} signal to the remote
 when you press the @key{Ctrl-C} key to interrupt the program running
 on the remote.  If set to off, @value{GDBN} sends the @samp{Ctrl-C}
@@ -22016,6 +22017,7 @@ Show the current setting of the target w
 * Stop Reply Packets::
 * General Query Packets::
 * Register Packet Format::
+* Interrupts::
 * Examples::
 * File-I/O remote protocol extension::
 @end menu
@@ -23063,6 +23065,27 @@ as @code{MIPS32}.
 
 @end table
 
+@node Interrupts
+@section Interrupts
+
+When a program on the remote target is running, @value{GDBN} may
+attempt to interrupt it by sending a @samp{Ctrl-C} or a @code{BREAK},
+control of which is specified via @value{GDBN}'s @samp{remotebreak}
+setting.  @xref{set remotebreak}.  The precise meaning of @code{BREAK}
+is defined by the transport mechanism and may, in fact, be undefined. 
+@samp{Ctrl-C}, on the other hand, is defined and implemented for all
+transport mechanisms and is represented by sending the single byte
+@code{0x03}.  @samp{Ctrl-C} must not be sent as part of a packet as
+defined in the Overview section.  @xref{Overview}.
+
+Stubs are not required to recognize these interrupt mechanisms and the
+precise meaning associated with receipt of the interrupt is
+implementation defined.  If the stub is successful at interrupting the
+running program, it is expected that it will send one of the Stop
+Reply Packets (@xref{Stop Reply Packets}) to @value{GDBN} as a result
+of successfully stopping the program.  Interrupts received while the
+program is stopped will be discarded.
+
 @node Examples
 @section Examples
 


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

end of thread, other threads:[~2005-11-19  1:21 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-18  5:59 [rfa/doc] Add section on interrupts to remote protocol documentation Kevin Buettner
2005-11-18  8:35 ` Jim Blandy
2005-11-18 11:20   ` Steven Johnson
2005-11-18 11:57     ` Jim Blandy
2005-11-18 17:23       ` Kevin Buettner
2005-11-18 20:25         ` Jim Blandy
2005-11-18 13:53     ` Eli Zaretskii
2005-11-18 15:33       ` Steven Johnson
2005-11-18 14:06 ` Eli Zaretskii
2005-11-18 21:45   ` Kevin Buettner
2005-11-18 21:47     ` Daniel Jacobowitz
2005-11-18 22:07     ` Jim Blandy
2005-11-19 10:57       ` Steven Johnson
2005-11-18 22:18     ` Kevin Buettner
2005-11-18 22:19     ` Michael Snyder
2005-11-18 22:38     ` Eli Zaretskii
2005-11-19  1:21     ` Kevin Buettner

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