Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] 'tfind none' is an alias of 'tfind end'.
@ 2012-08-13  9:37 Yao Qi
  2012-08-15 19:43 ` Tom Tromey
  2012-08-17  8:24 ` Regression for gdb.trace/tfind.exp [Re: [PATCH] 'tfind none' is an alias of 'tfind end'.] Jan Kratochvil
  0 siblings, 2 replies; 7+ messages in thread
From: Yao Qi @ 2012-08-13  9:37 UTC (permalink / raw)
  To: gdb-patches

Hi,
As doc said, 'tfind none' and 'tfind end' does the same thing,
but they are registered as two commands.  This patch is to
change 'tfind none' to the alias of 'tfind end'.

Regression tested on x86_64-unknown-linux-gnu.  OK to apply?

gdb:

2012-08-13  Yao Qi  <yao@codesourcery.com>

	* tracepoint.c (trace_find_none_command): Remove.
	(_initialize_tracepoint): Call add_alias_cmd for "tfind none".
---
 gdb/tracepoint.c |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)

diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index 21701b4..3455abe 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -2418,13 +2418,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)
@@ -5260,13 +5253,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."),
-- 
1.7.7.6


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-08-18  1:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-13  9:37 [PATCH] 'tfind none' is an alias of 'tfind end' Yao Qi
2012-08-15 19:43 ` Tom Tromey
2012-08-17  8:24 ` Regression for gdb.trace/tfind.exp [Re: [PATCH] 'tfind none' is an alias of 'tfind end'.] Jan Kratochvil
2012-08-17  8:31   ` Yao Qi
2012-08-17  8:58   ` Yao Qi
2012-08-17 15:19     ` Jan Kratochvil
2012-08-18  1:02       ` [committed]: " Yao Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox