Patchwork [6/6] Fix varobj_delete comment

login
register
mail settings
Submitter Simon Marchi
Date Jan. 29, 2015, 7:28 p.m.
Message ID <1422559716-5480-6-git-send-email-simon.marchi@ericsson.com>
Download mbox | patch
Permalink /patch/4848/
State New
Headers show

Comments

Simon Marchi - Jan. 29, 2015, 7:28 p.m.
gdb/ChangeLog:

	* varobj.c (varobj_delete): Fix comment.
---
 gdb/varobj.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
Joel Brobecker - Jan. 30, 2015, 3:36 a.m.
> gdb/ChangeLog:
> 
> 	* varobj.c (varobj_delete): Fix comment.

Looks good. Thank you!
Simon Marchi - Jan. 30, 2015, 8:17 p.m.
On 15-01-29 10:36 PM, Joel Brobecker wrote:
>> gdb/ChangeLog:
>>
>> 	* varobj.c (varobj_delete): Fix comment.
> 
> Looks good. Thank you!

Thanks, pushed!

Patch

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)