From patchwork Thu Jan 29 19:28:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Marchi X-Patchwork-Id: 4848 Received: (qmail 16051 invoked by alias); 29 Jan 2015 19:29:00 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 16012 invoked by uid 89); 29 Jan 2015 19:28:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00, SPF_PASS autolearn=ham version=3.3.2 X-HELO: usevmg20.ericsson.net Received: from usevmg20.ericsson.net (HELO usevmg20.ericsson.net) (198.24.6.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 29 Jan 2015 19:28:54 +0000 Received: from EUSAAHC005.ericsson.se (Unknown_Domain [147.117.188.87]) by usevmg20.ericsson.net (Symantec Mail Security) with SMTP id 5B.85.03307.4F63AC45; Thu, 29 Jan 2015 14:34:44 +0100 (CET) Received: from elxcz23q12-y4.mo.ca.am.ericsson.se (147.117.188.8) by smtps-am.internal.ericsson.com (147.117.188.87) with Microsoft SMTP Server (TLS) id 14.3.195.1; Thu, 29 Jan 2015 14:28:42 -0500 From: Simon Marchi To: CC: Simon Marchi Subject: [PATCH 6/6] Fix varobj_delete comment Date: Thu, 29 Jan 2015 14:28:36 -0500 Message-ID: <1422559716-5480-6-git-send-email-simon.marchi@ericsson.com> In-Reply-To: <1422559716-5480-1-git-send-email-simon.marchi@ericsson.com> References: <1422559716-5480-1-git-send-email-simon.marchi@ericsson.com> MIME-Version: 1.0 X-IsSubscribed: yes gdb/ChangeLog: * varobj.c (varobj_delete): Fix comment. --- gdb/varobj.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gdb/varobj.c b/gdb/varobj.c index d3fa1ba..98e9e43 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -502,9 +502,10 @@ varobj_get_expression (const struct varobj *var) } /* Deletes a varobj and all its children if only_children == 0, - otherwise deletes only the children; returns a malloc'ed list of - all the (malloc'ed) names of the variables that have been deleted - (NULL terminated). */ + otherwise deletes only the children. If DELLIST is non-NULL, it is + assigned a malloc'ed list of all the (malloc'ed) names of the variables + that have been deleted (NULL terminated). Returns the number of deleted + variables. */ int varobj_delete (struct varobj *var, char ***dellist, int only_children)