From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28828 invoked by alias); 8 Oct 2010 17:41:58 -0000 Received: (qmail 28820 invoked by uid 22791); 8 Oct 2010 17:41:57 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 08 Oct 2010 17:41:51 +0000 Received: (qmail 21119 invoked from network); 8 Oct 2010 17:41:50 -0000 Received: from unknown (HELO caradoc.them.org) (dan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 8 Oct 2010 17:41:50 -0000 Date: Fri, 08 Oct 2010 17:41:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sourceware.org Cc: Stan Shebs , Pedro Alves Subject: [RFA] Quiet a tracepoint notification with gdbserver Message-ID: <20101008174145.GP23776@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2010-10/txt/msg00145.txt.bz2 Since gdbserver now defines trace_timestamp, we get a notice after connection. This is confusing if you're not trying to use tracepoints. I suggest the attached patch; OK? -- Daniel Jacobowitz CodeSourcery 2010-10-08 Daniel Jacobowitz * tracepoint.c (merge_uploaded_trace_state_variables): Only print messages if info_verbose. Index: tracepoint.c =================================================================== --- tracepoint.c (revision 301900) +++ tracepoint.c (working copy) @@ -3139,13 +3139,17 @@ merge_uploaded_trace_state_variables (st { tsv = find_matching_tsv (utsv); if (tsv) - printf_filtered (_("Assuming trace state variable $%s is same as target's variable %d.\n"), - tsv->name, utsv->number); + { + if (info_verbose) + printf_filtered (_("Assuming trace state variable $%s is same as target's variable %d.\n"), + tsv->name, utsv->number); + } else { tsv = create_tsv_from_upload (utsv); - printf_filtered (_("Created trace state variable $%s for target's variable %d.\n"), - tsv->name, utsv->number); + if (info_verbose) + printf_filtered (_("Created trace state variable $%s for target's variable %d.\n"), + tsv->name, utsv->number); } /* Give precedence to numberings that come from the target. */ if (tsv)