public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Enze Li <lienze2010@hotmail.com>
To: gdb-patches@sourceware.org
Subject: [RFC][PATCH 0/2][PR 28406] gdb: add exit command as an alias for quit
Date: Sat, 30 Oct 2021 19:06:27 +0800	[thread overview]
Message-ID: <MEAP282MB0293B573BAFD670F75FC0BE7DD889@MEAP282MB0293.AUSP282.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <20211030102035.32391-1-lienze2010@hotmail.com>

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. 

Is this a good idea? Or, do these modifications make sense?

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 | 12 +++++++-----
 2 files changed, 9 insertions(+), 6 deletions(-)

-- 
2.33.1


       reply	other threads:[~2021-10-30 11:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20211030102035.32391-1-lienze2010@hotmail.com>
2021-10-30 11:06 ` Enze Li [this message]
     [not found] ` <20211030110629.4860-1-lienze2010@hotmail.com>
2021-10-30 11:06   ` [RFC][PATCH 1/2] gdb: improve quit command with an alias called exit Enze Li
2021-10-30 11:06   ` [RFC][PATCH 2/2] gdb/doc: Document the exit command Enze Li
2021-11-01 18:05     ` Bruno Larsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=MEAP282MB0293B573BAFD670F75FC0BE7DD889@MEAP282MB0293.AUSP282.PROD.OUTLOOK.COM \
    --to=lienze2010@hotmail.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).