From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18417 invoked by alias); 28 Apr 2014 06:15:17 -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 18274 invoked by uid 89); 28 Apr 2014 06:15:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,FROM_12LTRDOM autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 28 Apr 2014 06:15:15 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1WeeqN-0005tZ-Un from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Sun, 27 Apr 2014 23:15:11 -0700 Received: from SVR-ORW-FEM-02.mgc.mentorg.com ([147.34.96.206]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 27 Apr 2014 23:15:11 -0700 Received: from qiyao.dyndns.org.com (147.34.91.1) by svr-orw-fem-02.mgc.mentorg.com (147.34.96.168) with Microsoft SMTP Server id 14.2.247.3; Sun, 27 Apr 2014 23:15:11 -0700 From: Yao Qi To: Subject: [PATCH 0/4 V2] Partially available/unavailable data in requested range Date: Mon, 28 Apr 2014 06:15:00 -0000 Message-ID: <1398665538-16580-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2014-04/txt/msg00555.txt.bz2 This patch series is V2, to address review comments in V1 https://sourceware.org/ml/gdb-patches/2014-04/msg00395.html There are some changes in V2: - Fall back to read from executable if requested data is unavailable in trace frames. - Modify gdb.trace/unavailable.exp to cover the scenario this patch is to fix. gdb.trace/unavailable.exp is to test the collected trace data in live inferior, but this fix is about collected trace data in trace file. Patch #1 refactors unavailable.exp, so that it can be extended to cover trace files. During the refactor, we find automatic display behaves differently on live inferior and on trace file. Patch #2 is to get rid of this difference. Then, patch #3 extends unavailable.exp by saving traceframes into trace files, read data from them, and test the output is identical among these targets (remote, tfile and ctf). After this change, unavailable.exp exposes the problem patch #4 tries to fix (see more details about the problem in patch #4). I'll squash patch #3 and #4 before push them into repository. The patch series is tested on x86_64-linux with target_board unix and native-gdbserver respectively. *** BLURB HERE *** Yao Qi (4): Move traceframe checking out of traceframe generation Show new created display Save traceframes in trace file and read data out from trace file. Partially available/unavailable data in requested range gdb/ctf.c | 11 +- gdb/printcmd.c | 2 +- gdb/testsuite/gdb.trace/unavailable.exp | 758 +++++++++++++++++++------------- gdb/tracefile-tfile.c | 11 +- 4 files changed, 482 insertions(+), 300 deletions(-) -- 1.9.0