Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Pierre Muller" <muller@ics.u-strasbg.fr>
To: <gdb-patches@sourceware.org>
Subject: [RFA] Add "inf" alias for "info"
Date: Wed, 08 Jul 2009 13:18:00 -0000	[thread overview]
Message-ID: <000001c9ffce$8b9b81e0$a2d285a0$@u-strasbg.fr> (raw)


  I was used to use
(gdb) inf reg
to get a listing of registers,
but since the new "inferior" command appeared,
I now get this:
(gdb) inf reg
Ambiguous command "inf reg": inferior, info.

  The proposed patch add "inf" as an alias
of "info", saving the hassle of retyping "info"
after the message above. 
  I think that "inferior" is a far less used command
and it is only useful for targets supporting
multiple inferiors...

  Is this patch OK?


Pierre Muller
Pascal language support maintainer for GDB


2009-07-08  Pierre Muller  <muller@ics.u-strasbg.fr>

        * cli/cli-cmds.c (init_cli_cmds): Add "inf" alias for "info"
command.

Index: cli/cli-cmds.c
===================================================================
RCS file: /cvs/src/src/gdb/cli/cli-cmds.c,v
retrieving revision 1.90
diff -u -p -r1.90 cli-cmds.c
--- cli/cli-cmds.c      2 Jul 2009 21:57:28 -0000       1.90
+++ cli/cli-cmds.c      8 Jul 2009 13:15:11 -0000
@@ -1341,6 +1341,7 @@ Without an argument, history expansion i
 Generic command for showing things about the program being debugged."),
                  &infolist, "info ", 0, &cmdlist);
   add_com_alias ("i", "info", class_info, 1);
+  add_com_alias ("inf", "info", class_info, 1);

   add_com ("complete", class_obscure, complete_command,
           _("List the completions for the rest of the line as a
command."));
~


             reply	other threads:[~2009-07-08 13:18 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-08 13:18 Pierre Muller [this message]
2009-07-08 13:23 ` Pedro Alves
2009-07-08 13:25   ` Daniel Jacobowitz
2009-07-08 13:26     ` Pedro Alves
2009-07-08 13:35       ` Daniel Jacobowitz
2009-07-08 13:48         ` Pedro Alves
2009-07-08 14:00           ` Daniel Jacobowitz
2009-07-08 13:28   ` Pierre Muller
2009-07-08 13:36     ` Pedro Alves
2009-07-08 13:41       ` Pierre Muller
2009-07-08 13:44         ` Pedro Alves
2009-07-08 17:43   ` Michael Snyder
2009-07-08 20:08     ` Pedro Alves

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='000001c9ffce$8b9b81e0$a2d285a0$@u-strasbg.fr' \
    --to=muller@ics.u-strasbg.fr \
    --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