This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Fix varobj_delete comment


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6da58d3e02f50801176cfdb9006d843b5f6ab2d4

commit 6da58d3e02f50801176cfdb9006d843b5f6ab2d4
Author: Simon Marchi <simon.marchi@ericsson.com>
Date:   Fri Jan 30 15:16:43 2015 -0500

    Fix varobj_delete comment
    
    gdb/ChangeLog:
    
    	* varobj.c (varobj_delete): Fix comment.

Diff:
---
 gdb/ChangeLog | 4 ++++
 gdb/varobj.c  | 7 ++++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index bdf9fcc..71ed80c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
 
+	* varobj.c (varobj_delete): Fix comment.
+
+2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
+
 	* varobj.c (create_child): Modify comment.
 
 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
diff --git a/gdb/varobj.c b/gdb/varobj.c
index 76bf495..268ba3c 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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]