RFA: infcmd.c: Add `info r' alias for `info registers'
Peter.Schauer
Peter.Schauer@regent.e-technik.tu-muenchen.de
Mon Mar 27 07:36:00 GMT 2000
For over ten years I have been using
i r $NN
to examine the contents of a register. Due to the new `info remote-process'
command, `i r' is now ambigious, which really gets in the way, as I have
to retype `i reg $NN' if I fall back into old habits.
The following patch adds an alias and makes my life easier.
2000-03-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
* infcmd.c (_initialize_infcmd): Add `info r' alias for
`info registers'.
--- gdb/infcmd.c.orig Thu Feb 24 13:41:44 2000
+++ gdb/infcmd.c Sat Mar 25 13:38:22 2000
@@ -1998,6 +1998,7 @@ use \"set args\" without arguments.");
add_info ("registers", nofp_registers_info,
"List of integer registers and their contents, for selected stack frame.\n\
Register name as argument means describe only that register.");
+ add_info_alias ("r", "registers", 1);
if (xdb_commands)
add_com ("lr", class_info, nofp_registers_info,
--
Peter Schauer pes@regent.e-technik.tu-muenchen.de
More information about the Gdb-patches
mailing list