aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1995-07-20 02:12:09 +0000
committerStan Shebs <shebs@codesourcery.com>1995-07-20 02:12:09 +0000
commitf94cadf988147b89903e3350d7d09cfb56053972 (patch)
treebda28010ce564b6fa6406a72f20d66ab0e8e3d09 /gdb/doc
parent641c7fdfd78ce3faf8663cc0d3a45baddc1bbf0f (diff)
downloadgdb-f94cadf988147b89903e3350d7d09cfb56053972.zip
gdb-f94cadf988147b89903e3350d7d09cfb56053972.tar.gz
gdb-f94cadf988147b89903e3350d7d09cfb56053972.tar.bz2
From Richard Earnshaw (rearnsha@armltd.co.uk):
* gdb.texinfo (convenience variables): Document $_exitcode. (quit): Document optional expression to use as exit code.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog11
-rw-r--r--gdb/doc/gdb.texinfo11
2 files changed, 20 insertions, 2 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index d72c004..8334fcf 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,14 @@
+Wed Jul 19 18:43:03 1995 Stan Shebs <shebs@andros.cygnus.com>
+
+ From Richard Earnshaw (rearnsha@armltd.co.uk):
+ * gdb.texinfo (convenience variables): Document $_exitcode.
+ (quit): Document optional expression to use as exit code.
+
+Thu Jun 22 21:27:33 1995 Victoria Mixon <victoria@cygnus.com>
+
+ * gdb.texinfo, remote.texi: Brought up to date with various
+ GDB changes.
+
Tue Jun 20 14:35:38 1995 Stan Shebs <shebs@andros.cygnus.com>
* gdb.texinfo: Update dates and versions, fix comments about
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index dc92101..4cc687b 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -952,11 +952,13 @@ Run using @var{device} for your program's standard input and output.
@cindex leaving @value{GDBN}
@table @code
-@kindex quit
+@kindex quit @r{[}@var{expression}@r{]}
@kindex q
@item quit
To exit @value{GDBN}, use the @code{quit} command (abbreviated @code{q}), or
-type an end-of-file character (usually @kbd{C-d}).
+type an end-of-file character (usually @kbd{C-d}). If you do not supply
+@var{expression}, @value{GDBN} will terminate normally; otherwise it will
+terminate using the result of @var{expression} as the error code.
@end table
@cindex interrupt
@@ -4974,6 +4976,11 @@ to the type of @code{$__}.
The variable @code{$__} is automatically set by the @code{x} command
to the value found in the last address examined. Its type is chosen
to match the format in which the data was printed.
+
+@item $_exitcode
+@kindex $_exitcode
+The variable @code{$_exitcode} is automatically set to the exit code when
+the program being debugged terminates.
@end table
@node Registers