This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] 'tfind none' is an alias of 'tfind end'.
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Mon, 13 Aug 2012 17:35:54 +0800
- Subject: [PATCH] 'tfind none' is an alias of 'tfind end'.
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