[PATCH 0/2][PR 28406] gdb: add exit command as an alias for quit

Enze Li lienze2010@hotmail.com
Sat Nov 13 12:08:53 GMT 2021


As described in PR28406, I think it is a good idea to add an exit command.
Many years ago, when I used the gdb debugger for the first time, I often
input the "quit" command incorrectly. Adding this "exit" command may be
friendly to new users, regardless of whether they have used other similar
software before.

The specific implementation of this idea is simple, only using the
add_com_alias method. Eventually, the quit_cmd function will be invoked.

Enze Li (2):
  gdb: improve quit command with an alias called exit
  gdb/doc: Document the exit command

 gdb/cli/cli-cmds.c  |  3 ++-
 gdb/doc/gdb.texinfo | 15 +++++++++------
 2 files changed, 11 insertions(+), 7 deletions(-)

-- 
2.33.1



More information about the Gdb-patches mailing list