diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2015-01-30 15:14:46 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2015-01-30 15:14:46 -0500 |
commit | 837ce2523fb0b81a8548624d204c857438c647ec (patch) | |
tree | 768e74048f760360cd82284b52f6a9a8f66eb5f2 /gdb/varobj.c | |
parent | b09e2c591f9221d865bfe8425990a6bf9fab24e3 (diff) | |
download | gdb-837ce2523fb0b81a8548624d204c857438c647ec.zip gdb-837ce2523fb0b81a8548624d204c857438c647ec.tar.gz gdb-837ce2523fb0b81a8548624d204c857438c647ec.tar.bz2 |
Mention that create_child takes ownership of the allocated name
gdb/ChangeLog:
* varobj.c (create_child): Modify comment.
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r-- | gdb/varobj.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c index 0daef91..76bf495 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -2043,7 +2043,10 @@ uninstall_variable (struct varobj *var) } -/* Create and install a child of the parent of the given name. */ +/* Create and install a child of the parent of the given name. + + The created VAROBJ takes ownership of the allocated NAME. */ + static struct varobj * create_child (struct varobj *parent, int index, char *name) { |