From dd304d5382484115a44a2aa81aafbb92e70ae462 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Sun, 16 May 2010 21:26:53 +0000 Subject: [PATCH] 2010-05-16 Michael Snyder * source.c (_initialize_source): Add "rev" as an abbreviation for the "reverse-search" command. --- gdb/ChangeLog | 5 +++++ gdb/source.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2c4368ff264..c5415d980fc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-05-16 Michael Snyder + + * source.c (_initialize_source): Add "rev" as an abbreviation + for the "reverse-search" command. + 2010-05-16 Michael Snyder * record.c: White space. 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) { -- 2.30.2