From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29180 invoked by alias); 5 Aug 2013 00:47:51 -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 29154 invoked by uid 89); 5 Aug 2013 00:47:50 -0000 X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RDNS_NONE autolearn=no version=3.3.1 Received: from Unknown (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 05 Aug 2013 00:47:50 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1V68xa-0000dh-Rq from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Sun, 04 Aug 2013 17:47:42 -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); Sun, 4 Aug 2013 17:47:42 -0700 Received: from qiyao.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; Sun, 4 Aug 2013 17:47:41 -0700 From: Yao Qi To: Subject: [PATCH] Update comments to list_args_or_locals. Date: Mon, 05 Aug 2013 00:47:00 -0000 Message-ID: <1375663603-6308-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2013-08/txt/msg00125.txt.bz2 The comments to function list_args_or_locals look out of date. This patch is to update the comments. I am not good at writing comments, so review is required here, IMO. gdb: 2013-08-05 Yao Qi * mi/mi-cmd-stack.c: Update comments to function list_args_or_locals. --- gdb/mi/mi-cmd-stack.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/gdb/mi/mi-cmd-stack.c b/gdb/mi/mi-cmd-stack.c index 70ff0b6..416f0f4 100644 --- a/gdb/mi/mi-cmd-stack.c +++ b/gdb/mi/mi-cmd-stack.c @@ -502,10 +502,9 @@ list_arg_or_local (const struct frame_arg *arg, enum what_to_list what, do_cleanups (old_chain); } -/* Print a list of the locals or the arguments for the currently - selected frame. If the argument passed is 0, printonly the names - of the variables, if an argument of 1 is passed, print the values - as well. */ +/* Print a list of the objects for the currently selected frame FI in + a certain form, which is determined by VALUES. The objects can be + locals, arguments or both, which is determined by WHAT. */ static void list_args_or_locals (enum what_to_list what, enum print_values values, -- 1.7.7.6