summaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2010-05-16 21:26:53 +0000
committerMichael Snyder <msnyder@specifix.com>2010-05-16 21:26:53 +0000
commit45d63159a5eb58a3f886a12967f631e15a6a8033 (patch)
tree8f1630c47a2122eb6e6d3084c916c5c51d216e11 /gdb/source.c
parent763b1b0909971ec7194f40b46463bc9e445f21e1 (diff)
downloadgdb-45d63159a5eb58a3f886a12967f631e15a6a8033.tar.gz
2010-05-16 Michael Snyder <msnyder@vmware.com>
* source.c (_initialize_source): Add "rev" as an abbreviation for the "reverse-search" command.
Diffstat (limited to 'gdb/source.c')
-rw-r--r--gdb/source.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/source.c b/gdb/source.c
index 210a0e0c4f3..cad01608a66 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -1971,6 +1971,7 @@ The matching line number is also stored as the value of \"$_\"."));
add_com ("reverse-search", class_files, reverse_search_command, _("\
Search backward for regular expression (see regex(3)) from last line listed.\n\
The matching line number is also stored as the value of \"$_\"."));
+ add_com_alias ("rev", "reverse-search", class_files, 1);
if (xdb_commands)
{