From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 427 invoked by alias); 11 Apr 2013 06:18:32 -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 417 invoked by uid 89); 11 Apr 2013 06:18:32 -0000 X-Spam-SWARE-Status: No, score=-4.4 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, 11 Apr 2013 06:18:30 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1UQAq5-0004wu-4b from Hui_Zhu@mentor.com for gdb-patches@sourceware.org; Wed, 10 Apr 2013 23:18:29 -0700 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Wed, 10 Apr 2013 23:18:28 -0700 Received: from [127.0.0.1] (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.1.289.1; Wed, 10 Apr 2013 23:18:27 -0700 Message-ID: <516655B0.20500@mentor.com> Date: Thu, 11 Apr 2013 10:36:00 -0000 From: Hui Zhu User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:19.0) Gecko/20130126 Thunderbird/19.0 MIME-Version: 1.0 To: gdb-patches ml Subject: [PATCH] store trace default-collect to target [4/6] save tracepoint References: <51665508.5050706@mentor.com> In-Reply-To: <51665508.5050706@mentor.com> Content-Type: multipart/mixed; boundary="------------020802020903090204000202" X-Virus-Found: No X-SW-Source: 2013-04/txt/msg00313.txt.bz2 --------------020802020903090204000202 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Content-length: 201 Hi, This patch make save tracepoint command save default-collect to source file. Thanks, Hui 2013-04-11 Hui Zhu * breakpoint.c (save_breakpoints): Handle default_collect. --------------020802020903090204000202 Content-Type: text/plain; charset="us-ascii"; name="defc-save.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="defc-save.txt" Content-length: 369 --- a/breakpoint.c +++ b/breakpoint.c @@ -15606,7 +15606,10 @@ save_breakpoints (char *filename, int fr make_cleanup_ui_file_delete (fp); if (extra_trace_bits) - save_trace_state_variables (fp); + { + fprintf_unfiltered (fp, "set default-collect $%s\n", default_collect); + save_trace_state_variables (fp); + } ALL_BREAKPOINTS (tp) { --------------020802020903090204000202--