summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2005-11-18 22:17:09 +0000
committerKevin Buettner <kevinb@redhat.com>2005-11-18 22:17:09 +0000
commitf9abcc9f279fdaecd7c624b23c5ad4fbea404b97 (patch)
treec363c25fd31ca9fcdee01365059c97de46a7f235
parentbc77d91fd3f54100cdaafe0261f7e7d331cebc8b (diff)
downloadgdb-f9abcc9f279fdaecd7c624b23c5ad4fbea404b97.tar.gz
* gdb.texinfo (set remotebreak): Add anchor.
(X packet): Likewise. (Remote Protocol): Add new section `Interrupts' and new index entry `interrupts (remote protocol)'.
-rw-r--r--gdb/doc/ChangeLog7
-rw-r--r--gdb/doc/gdb.texinfo34
2 files changed, 41 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index eedfdcb67d4..ccdc4713184 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,10 @@
+2005-11-18 Kevin Buettner <kevinb@redhat.com>
+
+ * gdb.texinfo (set remotebreak): Add anchor.
+ (X packet): Likewise.
+ (Remote Protocol): Add new section `Interrupts' and new index
+ entry `interrupts (remote protocol)'.
+
2005-11-18 Jim Blandy <jimb@redhat.com>
* gdb.texinfo (Packets): Move information out of 'q' and 'Q'
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 4ce68b40490..b6c1ed6c30c 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -12147,6 +12147,7 @@ Show the current speed of the remote connection.
@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 wait timeout.
* Stop Reply Packets::
* General Query Packets::
* Register Packet Format::
+* Interrupts::
* Examples::
* File-I/O remote protocol extension::
@end menu
@@ -22496,6 +22498,7 @@ The @samp{vCont} packet is not supported.
@end table
@item X @var{addr},@var{length}:@var{XX@dots{}}
+@anchor{X packet}
@cindex @samp{X} packet
Write data to memory, where the data is transmitted in binary.
@var{addr} is address, @var{length} is number of bytes,
@@ -23073,6 +23076,37 @@ as @code{MIPS32}.
@end table
+@node Interrupts
+@section Interrupts
+@cindex interrupts (remote protocol)
+
+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 (@pxref{set remotebreak}).
+
+The precise meaning of @code{BREAK} is defined by the transport
+mechanism and may, in fact, be undefined. @value{GDBN} does
+not currently define a @code{BREAK} mechanism for any of the network
+interfaces.
+
+@samp{Ctrl-C}, on the other hand, is defined and implemented for all
+transport mechanisms. It is represented by sending the single byte
+@code{0x03} without any of the usual packet overhead described in
+the Overview section (@pxref{Overview}). When a @code{0x03} byte is
+transmitted as part of a packet, it is considered to be packet data
+and does @emph{not} represent an interrupt. E.g., an @samp{X} packet
+(@pxref{X packet}, used for binary downloads, may include an unescaped
+@code{0x03} as part of its packet.
+
+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 (@pxref{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