This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] Add "inf" alias for "info"


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]