From: Yao Qi <yao@codesourcery.com>
To: <gdb-patches@sourceware.org>
Subject: [PATCH] 'tfind none' is an alias of 'tfind end'.
Date: Mon, 13 Aug 2012 09:37:00 -0000 [thread overview]
Message-ID: <1344850554-10470-1-git-send-email-yao@codesourcery.com> (raw)
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
next reply other threads:[~2012-08-13 9:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-13 9:37 Yao Qi [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1344850554-10470-1-git-send-email-yao@codesourcery.com \
--to=yao@codesourcery.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox