Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] Add "inf" alias for "info"
@ 2009-07-08 13:18 Pierre Muller
  2009-07-08 13:23 ` Pedro Alves
  0 siblings, 1 reply; 13+ messages in thread
From: Pierre Muller @ 2009-07-08 13:18 UTC (permalink / raw)
  To: gdb-patches


  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."));
~


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2009-07-08 18:24 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-08 13:18 [RFA] Add "inf" alias for "info" Pierre Muller
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox