aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorEnze Li <lienze2010@hotmail.com>2021-12-18 15:19:12 +0400
committerJoel Brobecker <brobecker@adacore.com>2021-12-18 15:19:12 +0400
commitfa8f0a0ff050352eb70ad7ccbcec87f99ced51e7 (patch)
tree01a114f8f1496571e282e2a656cfe3e1a5271b75 /gdb/doc
parent8d34471f70a84e6db89be40116d1ed0f6af941c0 (diff)
downloadfsf-binutils-gdb-fa8f0a0ff050352eb70ad7ccbcec87f99ced51e7.zip
fsf-binutils-gdb-fa8f0a0ff050352eb70ad7ccbcec87f99ced51e7.tar.gz
fsf-binutils-gdb-fa8f0a0ff050352eb70ad7ccbcec87f99ced51e7.tar.bz2
gdb: add "exit" command as an alias for "quit"
This command adds the "exit" command as an alias for the "quit" command, as requested in PR gdb/28406. The documentation is also updated to mention this new command. Tested on x86_64-linux. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=28406
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/gdb.texinfo15
1 files changed, 9 insertions, 6 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index d0c5bcf..0c517b4 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -841,7 +841,7 @@ The essentials are:
@item
type @samp{@value{GDBP}} to start @value{GDBN}.
@item
-type @kbd{quit} or @kbd{Ctrl-d} to exit.
+type @kbd{quit}, @kbd{exit} or @kbd{Ctrl-d} to exit.
@end itemize
@menu
@@ -1580,14 +1580,16 @@ Options,,Choosing Modes}.
@table @code
@kindex quit @r{[}@var{expression}@r{]}
+@kindex exit @r{[}@var{expression}@r{]}
@kindex q @r{(@code{quit})}
@item quit @r{[}@var{expression}@r{]}
+@itemx exit @r{[}@var{expression}@r{]}
@itemx q
To exit @value{GDBN}, use the @code{quit} command (abbreviated
-@code{q}), or type an end-of-file character (usually @kbd{Ctrl-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.
+@code{q}), the @code{exit} command, or type an end-of-file
+character (usually @kbd{Ctrl-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
@@ -47253,7 +47255,7 @@ Modula-2.
@value{GDBN} is invoked with the shell command @code{gdb}. Once started, it reads
commands from the terminal until you tell it to exit with the @value{GDBN}
-command @code{quit}. You can get online help from @value{GDBN} itself
+command @code{quit} or @code{exit}. You can get online help from @value{GDBN} itself
by using the command @code{help}.
You can run @code{gdb} with no arguments or options; but the most
@@ -47320,6 +47322,7 @@ Show information about @value{GDBN} command @var{name}, or general information
about using @value{GDBN}.
@item quit
+@itemx exit
Exit from @value{GDBN}.
@end table