This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] Add 'rev' as abbreviation for 'reverse-search'


Bug 10688 points out that 'rev' is documented as an abbreviation for
'reverse-search', yet it no longer works because it is ambiguous with
the new reverse-execution commands (reverse-continue etc.).

This patch adds 'rev' as a command alias for 'reverse-search'.

Comments?

2010-05-12  Michael Snyder  <msnyder@vmware.com>

	* source.c (_initialize_source): Add "rev" as an abbreviation
	for the "reverse-search" command.

Index: source.c
===================================================================
RCS file: /cvs/src/src/gdb/source.c,v
retrieving revision 1.111
diff -u -p -r1.111 source.c
--- source.c	6 May 2010 18:07:08 -0000	1.111
+++ source.c	12 May 2010 21:20:28 -0000
@@ -1971,6 +1971,7 @@ The matching line number is also stored 
   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)
     {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]