Mention that create_child takes ownership of the allocated name
gdb/ChangeLog: * varobj.c (create_child): Modify comment.
This commit is contained in:
parent
b09e2c591f
commit
837ce2523f
|
@ -1,3 +1,7 @@
|
||||||
|
2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
|
||||||
|
|
||||||
|
* varobj.c (create_child): Modify comment.
|
||||||
|
|
||||||
2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
|
2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
|
||||||
|
|
||||||
* ada-varobj.c (ada_number_of_children): Constify struct varobj *
|
* ada-varobj.c (ada_number_of_children): Constify struct varobj *
|
||||||
|
|
|
@ -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 *
|
static struct varobj *
|
||||||
create_child (struct varobj *parent, int index, char *name)
|
create_child (struct varobj *parent, int index, char *name)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue