From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32426 invoked by alias); 13 Jun 2013 01:29:07 -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 32416 invoked by uid 89); 13 Jun 2013 01:29:06 -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:05 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1UmwLX-0005g3-PM from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Wed, 12 Jun 2013 18:29:03 -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: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.2.247.3; Wed, 12 Jun 2013 18:29:03 -0700 From: Yao Qi To: Subject: [PATCH 0/6 V2] New MI command -trace-frame-collected Date: Thu, 13 Jun 2013 01:29:00 -0000 Message-ID: <1371086914-8398-1-git-send-email-yao@codesourcery.com> In-Reply-To: <1370610493-26468-1-git-send-email-yao@codesourcery.com> References: <1370610493-26468-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2013-06/txt/msg00295.txt.bz2 Hi, In a given traceframe, there are explicitly collected variables, registers, trace state variables, memories, and computed expressions. In MI, we don't have a command to dump these contents, and this patch adds -trace-frame-collected to do so. Patch 5/6 is the major part of this series, and patch 6/6 is the test to -trace-frame-collected. GDB needs to know what trace state variables are collected in a traceframe, so we extended the qXfer:traceframe-info object to report the set of collected trace state variables in the current traceframe. That is what patch 4/5 does. Patch 1/6, 2/6 and 3/6 is code refactor. The whole series are tested on x86_64-linux with native and gdbserver. This is the V2 of this series. In V2, there are several changes: - Mention some changes in ChangeLog entry and correct comments. - Split the changes on encode_actions in a different way, which is more readable. - Move the change from warning to error to a separate patch. - Explain what 'tvar' element does in NEWS. The V1 can be found *** BLURB HERE *** Yao Qi (6): Remove global variable tracepoint_list and stepping_list. Emit error in tdump command when traceframe is not selected. Move code to get_traceframe_location. Add id of TSV into traceframe_info. New MI command -trace-frame-collected New test: gdb.trace/mi-trace-frame-collected.exp gdb/NEWS | 11 + gdb/breakpoint.c | 2 - gdb/common/filestuff.c | 2 - gdb/common/gdb_vecs.h | 2 + gdb/ctf.c | 12 + gdb/doc/gdb.texinfo | 122 ++++++++- gdb/dwarf2loc.c | 2 - gdb/features/traceframe-info.dtd | 5 +- gdb/gdbserver/tracepoint.c | 7 + gdb/mi/mi-cmds.c | 2 + gdb/mi/mi-cmds.h | 1 + gdb/mi/mi-main.c | 299 +++++++++++++++++++- gdb/remote.c | 2 +- .../gdb.trace/mi-trace-frame-collected.exp | 154 ++++++++++ gdb/tracepoint.c | 304 +++++++++++++------- gdb/tracepoint.h | 50 +++- 16 files changed, 858 insertions(+), 119 deletions(-) create mode 100644 gdb/testsuite/gdb.trace/mi-trace-frame-collected.exp -- 1.7.7.6