From fa8f0a0ff050352eb70ad7ccbcec87f99ced51e7 Mon Sep 17 00:00:00 2001 From: Enze Li Date: Sat, 18 Dec 2021 15:19:12 +0400 Subject: 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 --- gdb/doc/gdb.texinfo | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'gdb/doc') 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 -- cgit v1.1