gdb/
authorYao Qi <yao@codesourcery.com>
Thu, 16 Aug 2012 07:26:16 +0000 (07:26 +0000)
committerYao Qi <yao@codesourcery.com>
Thu, 16 Aug 2012 07:26:16 +0000 (07:26 +0000)
* tracepoint.c (trace_find_none_command): Remove.
(_initialize_tracepoint): Call add_alias_cmd for "tfind none".

gdb/ChangeLog
gdb/tracepoint.c

index 3229ea9f9328b606f65a85f854c9aa5c7cf79aad..17b7651558699e992ca8e839bf1e2872316ac7ec 100644 (file)
@@ -1,3 +1,8 @@
+2012-08-16  Yao Qi  <yao@codesourcery.com>
+
+       * tracepoint.c (trace_find_none_command): Remove.
+       (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
+
 2012-08-16  Yao Qi  <yao@codesourcery.com>
 
        * remote.c (handle_notification): Remove parameter 'length'.
index e729d6da6429e465c9557eee93e6821754d1f928..a59f7b791db4fdf39212520f297fac9fa22ca197 100644 (file)
@@ -2404,13 +2404,6 @@ trace_find_end_command (char *args, int from_tty)
   trace_find_command ("-1", from_tty);
 }
 
-/* tfind none */
-static void
-trace_find_none_command (char *args, int from_tty)
-{
-  trace_find_command ("-1", from_tty);
-}
-
 /* tfind start */
 static void
 trace_find_start_command (char *args, int from_tty)
@@ -5243,13 +5236,10 @@ Default is the current PC, or the PC of the current trace frame."),
           &tfindlist);
 
   add_cmd ("end", class_trace, trace_find_end_command, _("\
-Synonym for 'none'.\n\
 De-select any trace frame and resume 'live' debugging."),
           &tfindlist);
 
-  add_cmd ("none", class_trace, trace_find_none_command,
-          _("De-select any trace frame and resume 'live' debugging."),
-          &tfindlist);
+  add_alias_cmd ("none", "end", class_trace, 0, &tfindlist);
 
   add_cmd ("start", class_trace, trace_find_start_command,
           _("Select the first trace frame in the trace buffer."),