From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27935 invoked by alias); 14 Feb 2014 08:46: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 27912 invoked by uid 89); 14 Feb 2014 08:46:31 -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; Fri, 14 Feb 2014 08:46:29 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1WEEPh-0006iG-Mc from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Fri, 14 Feb 2014 00:46:25 -0800 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); Fri, 14 Feb 2014 00:46:25 -0800 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; Fri, 14 Feb 2014 00:46:24 -0800 From: Yao Qi To: Subject: [RFC 00/12 V2] Visit varobj available children only in MI Date: Fri, 14 Feb 2014 08:46:00 -0000 Message-ID: <1392367471-13527-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00489.txt.bz2 This is the V2 of this patch series, addressing Keith's review comments to V1 (reviewed in Jan 2014). The general description of this series can be found https://sourceware.org/ml/gdb-patches/2013-11/msg00739.html Changes in V2 are: - Include NEWS and doc. - Fix typos, grammatical mistakes, and changelog entries. - Update copyright year from "2013" to "2013-2014" for new files. - Use -list-features to return "available-children-only" (#7). - Update config/djgpp/fnchange.lst for new tests. - Fix a missing cleanup (#2). - Call varobj_delete_iter in free_variable (#3). Regression tested on x86_64-linux. *** BLURB HERE *** Yao Qi (12): Use 'struct varobj_item' to represent name and value pair Generalize varobj iterator Iterate over 'struct varobj_item' instead of PyObject Remove #if HAVE_PYTHON Rename varobj_pretty_printed_p to varobj_is_dynamic_p Use varobj_is_dynamic_p more widely MI option --available-children-only Iterator varobj_items by their availability Delete varobj's children on traceframe is changed. Match dynamic="1" in the output of -var-list-children Test case NEWS and Doc on --available-children-only gdb/Makefile.in | 17 +- gdb/NEWS | 7 + gdb/config/djgpp/fnchange.lst | 4 + gdb/doc/gdb.texinfo | 62 +++- gdb/mi/mi-cmd-var.c | 136 +++++++-- gdb/mi/mi-main.c | 1 + gdb/python/py-varobj.c | 198 ++++++++++++ gdb/python/python-internal.h | 4 + gdb/testsuite/gdb.trace/available-children-only.c | 69 ++++ gdb/testsuite/gdb.trace/available-children-only.cc | 45 +++ .../gdb.trace/mi-available-children-only-cxx.exp | 126 ++++++++ .../gdb.trace/mi-available-children-only.exp | 198 ++++++++++++ gdb/testsuite/lib/mi-support.exp | 17 +- gdb/varobj-iter-avail.c | 162 ++++++++++ gdb/varobj-iter.h | 76 +++++ gdb/varobj.c | 327 ++++++++++---------- gdb/varobj.h | 15 +- 17 files changed, 1257 insertions(+), 207 deletions(-) create mode 100644 gdb/python/py-varobj.c create mode 100644 gdb/testsuite/gdb.trace/available-children-only.c create mode 100644 gdb/testsuite/gdb.trace/available-children-only.cc create mode 100644 gdb/testsuite/gdb.trace/mi-available-children-only-cxx.exp create mode 100644 gdb/testsuite/gdb.trace/mi-available-children-only.exp create mode 100644 gdb/varobj-iter-avail.c create mode 100644 gdb/varobj-iter.h -- 1.7.7.6