From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23315 invoked by alias); 13 Aug 2012 09:37:20 -0000 Received: (qmail 23306 invoked by uid 22791); 13 Aug 2012 09:37:19 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 13 Aug 2012 09:37:05 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1T0r57-0006MJ-1I from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Mon, 13 Aug 2012 02:37:05 -0700 Received: from SVR-ORW-FEM-04.mgc.mentorg.com ([147.34.97.41]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 13 Aug 2012 02:37:04 -0700 Received: from qiyao.dyndns.org.dyndns.org (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.1.289.1; Mon, 13 Aug 2012 02:36:59 -0700 From: Yao Qi To: Subject: [PATCH] 'tfind none' is an alias of 'tfind end'. Date: Mon, 13 Aug 2012 09:37:00 -0000 Message-ID: <1344850554-10470-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-08/txt/msg00356.txt.bz2 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 * 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