From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19246 invoked by alias); 7 Jun 2013 13:07:40 -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 18973 invoked by uid 89); 7 Jun 2013 13:07:30 -0000 X-Spam-SWARE-Status: No, score=-3.9 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,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; Fri, 07 Jun 2013 13:07:30 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1UkwO8-0007ee-H9 from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Fri, 07 Jun 2013 06:07:28 -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); Fri, 7 Jun 2013 06:07:28 -0700 Received: from qiyao.dyndns.org.dyndns.org (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.2.247.3; Fri, 7 Jun 2013 06:06:46 -0700 From: Yao Qi To: Subject: [PATCH 0/5] New MI command -trace-frame-collected Date: Fri, 07 Jun 2013 13:07:00 -0000 Message-ID: <1370610493-26468-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2013-06/txt/msg00148.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 4/5 is the major part of this series, and patch 5/5 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 3/5 does. Patch 1/5, and 2/5 code refactor. The whole series are tested on x86_64-linux with native and gdbserver. *** BLURB HERE *** Yao Qi (5): Remove global variable tracepoint_list and stepping_list. 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 | 9 + 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 | 296 +++++++++++++++++++- gdb/remote.c | 2 +- .../gdb.trace/mi-trace-frame-collected.exp | 157 ++++++++++ gdb/tracepoint.c | 308 +++++++++++++------- gdb/tracepoint.h | 53 ++++- 16 files changed, 860 insertions(+), 122 deletions(-) create mode 100644 gdb/testsuite/gdb.trace/mi-trace-frame-collected.exp -- 1.7.7.6