From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 336 invoked by alias); 13 Jun 2013 01:29:09 -0000 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 Received: (qmail 304 invoked by uid 89); 13 Jun 2013 01:29:09 -0000 X-Spam-SWARE-Status: No, score=-4.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL autolearn=ham version=3.3.1 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 13 Jun 2013 01:29:08 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1UmwLa-0005gK-IL from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Wed, 12 Jun 2013 18:29:06 -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); Wed, 12 Jun 2013 18:29:06 -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.2.247.3; Wed, 12 Jun 2013 18:29:05 -0700 From: Yao Qi To: Subject: [PATCH 2/6] Emit error in tdump command when traceframe is not selected. Date: Thu, 13 Jun 2013 01:29:00 -0000 Message-ID: <1371086914-8398-3-git-send-email-yao@codesourcery.com> In-Reply-To: <1371086914-8398-1-git-send-email-yao@codesourcery.com> References: <1370610493-26468-1-git-send-email-yao@codesourcery.com> <1371086914-8398-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2013-06/txt/msg00296.txt.bz2 gdb: 2013-06-13 Pedro Alves Yao Qi * tracepoint.c (trace_dump_command): GDB emits an error instead of a warning when the traceframe is not selected. --- gdb/tracepoint.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 9646090..05f51ea 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -2982,10 +2982,7 @@ trace_dump_command (char *args, int from_tty) struct cleanup *old_chain; if (tracepoint_number == -1) - { - warning (_("No current trace frame.")); - return; - } + error (_("No current trace frame.")); old_chain = make_cleanup (null_cleanup, NULL); t = get_tracepoint (tracepoint_number); -- 1.7.7.6