From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21115 invoked by alias); 3 Jul 2013 01:48:53 -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 21051 invoked by uid 89); 3 Jul 2013 01:48:52 -0000 X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL,BAYES_00,FROM_12LTRDOM,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; Wed, 03 Jul 2013 01:48:51 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1UuCBd-0000qc-HE from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Tue, 02 Jul 2013 18:48:49 -0700 Received: from SVR-ORW-FEM-05.mgc.mentorg.com ([147.34.97.43]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 2 Jul 2013 18:48:50 -0700 Received: from qiyao.dyndns.org.dyndns.org (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server id 14.2.247.3; Tue, 2 Jul 2013 18:48:48 -0700 From: Yao Qi To: Subject: [PATCH 0/2] New option --skip-unavailable to -stack-list-XXX commands Date: Wed, 03 Jul 2013 01:48:00 -0000 Message-ID: <1372816106-15942-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2013-07/txt/msg00101.txt.bz2 Hi, This patch series add new option '--skip-unavailable' to MI commands '-stack-list-{locals, arguments, variables}'. This option is optional, and when it is used, locals or arguments whose values are not available are not listed. It is useful when the MI front-end is not interested in unavailable values. The patch 1/2 is a refactor patch, use mi_getopt in mi_cmd_stack_list_locals and mi_cmd_stack_list_variables, so it is easier to add new option patch 2/2. Patch 2/2 is the major part of this series. Regression tested on x86_64-linux. Note that this patch is for MI, but the idea that skipping unavailable locals and arguments can be applied to CLI too. We can invent new CLI commands on top of 'info locals' and 'info args' to display available locals or arguments. This piece of work is not included in this series. *** BLURB HERE *** Yao Qi (2): Use mi_getopt in mi_cmd_stack_list_locals and mi_cmd_stack_list_variables Add options to skip unavailable locals gdb/doc/gdb.texinfo | 17 ++- gdb/mi/mi-cmd-stack.c | 256 ++++++++++++++++------ gdb/testsuite/gdb.trace/mi-trace-unavailable.exp | 9 + gdb/valprint.c | 8 +- gdb/valprint.h | 2 + gdb/value.c | 20 ++ gdb/value.h | 4 + 7 files changed, 246 insertions(+), 70 deletions(-) -- 1.7.7.6