This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
RFA: maint.c: Add `mt i' alias for `mt info'
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: RFA: maint.c: Add `mt i' alias for `mt info'
- From: "Peter.Schauer" <Peter dot Schauer at regent dot e-technik dot tu-muenchen dot de>
- Date: Mon, 27 Mar 2000 17:37:32 MET DST
I have been used to issue e.g. `maint i sec'. Due to the new
`maint internal-error' command, `maint i sec' is now ambigous.
I could live with this, but as the top level `info' command can be abbreviated
via `i', GDB should be consistent and allow the same for `mt info'.
Here is a patch:
2000-03-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
* maint.c (_initialize_maint_cmds): Add `mt i' alias for `mt info'.
--- gdb/maint.c.orig Thu Sep 9 01:59:19 1999
+++ gdb/maint.c Sat Mar 25 20:46:19 2000
@@ -375,6 +375,7 @@ to test internal functions such as the C
"Commands for showing internal info about the program being debugged.",
&maintenanceinfolist, "maintenance info ", 0,
&maintenancelist);
+ add_alias_cmd ("i", "info", class_maintenance, 1, &maintenancelist);
add_cmd ("sections", class_maintenance, maintenance_info_sections,
"List the BFD sections of the exec and core files.",
--
Peter Schauer pes@regent.e-technik.tu-muenchen.de