aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-16 21:26:53 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-16 21:26:53 +0000
commitdd304d5382484115a44a2aa81aafbb92e70ae462 (patch)
tree14577d90eac08a16a75f48b5426ee4becd6820a8
parent123f5f96b6f084af89436ac1efaf7b77ab66bbe5 (diff)
downloadgdb-dd304d5382484115a44a2aa81aafbb92e70ae462.zip
gdb-dd304d5382484115a44a2aa81aafbb92e70ae462.tar.gz
gdb-dd304d5382484115a44a2aa81aafbb92e70ae462.tar.bz2
2010-05-16 Michael Snyder <msnyder@vmware.com>
* source.c (_initialize_source): Add "rev" as an abbreviation for the "reverse-search" command.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/source.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2c4368f..c5415d9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2010-05-16 Michael Snyder <msnyder@vmware.com>
+ * source.c (_initialize_source): Add "rev" as an abbreviation
+ for the "reverse-search" command.
+
+2010-05-16 Michael Snyder <msnyder@vmware.com>
+
* record.c: White space.
* regcache.c: White space.
* reggroups.c: White space.
diff --git a/gdb/source.c b/gdb/source.c
index 210a0e0..cad0160 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)
{