From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12229 invoked by alias); 13 Aug 2012 15:28:50 -0000 Received: (qmail 12173 invoked by uid 22791); 13 Aug 2012 15:28:49 -0000 X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 13 Aug 2012 15:28:31 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1T0wZC-0004Bw-PW from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Mon, 13 Aug 2012 08:28:30 -0700 Received: from SVR-ORW-FEM-05.mgc.mentorg.com ([147.34.97.43]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Mon, 13 Aug 2012 08:28:30 -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.1.289.1; Mon, 13 Aug 2012 08:28:29 -0700 From: Yao Qi To: Subject: [PATCH 3/3] comments update Date: Mon, 13 Aug 2012 15:28:00 -0000 Message-ID: <1344871663-915-4-git-send-email-yao@codesourcery.com> In-Reply-To: <1344871663-915-1-git-send-email-yao@codesourcery.com> References: <7A6A55B4-0293-4AD6-AB1F-B3169F8ADCC1@cs.umd.edu> <1344871663-915-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes 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 X-SW-Source: 2012-08/txt/msg00366.txt.bz2 gdb: 2012-08-13 Yao Qi * cli/cli-decode.c: Update comment to add_setshow_integer_cmd. * command.h (enum var_types): Update comment to var_integer. --- gdb/cli/cli-decode.c | 3 ++- gdb/command.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c index 9e8218c..5e93f99 100644 --- a/gdb/cli/cli-decode.c +++ b/gdb/cli/cli-decode.c @@ -632,7 +632,8 @@ add_setshow_optional_filename_cmd (char *name, enum command_class class, /* Add element named NAME to both the set and show command LISTs (the list for set/show or some sublist thereof). CLASS is as in add_cmd. VAR is address of the variable which will contain the - value. SET_DOC and SHOW_DOC are the documentation strings. */ + value. SET_DOC and SHOW_DOC are the documentation strings. This + function is only used in Python API. Please don't use it elsewhere. */ void add_setshow_integer_cmd (char *name, enum command_class class, int *var, diff --git a/gdb/command.h b/gdb/command.h index 553bd717..b88bd8b 100644 --- a/gdb/command.h +++ b/gdb/command.h @@ -77,7 +77,8 @@ typedef enum var_types /* Like var_uinteger but signed. *VAR is an int. The user can type 0 to mean "unlimited", which is stored in *VAR as - INT_MAX. */ + INT_MAX. The only remaining use of it is the Python API. + Don't use it elsewhere. */ var_integer, /* String which the user enters with escapes (e.g. the user types -- 1.7.7.6