This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
FORMAT_BINARY, /* Binary display */
FORMAT_DECIMAL, /* Decimal display */
FORMAT_HEXADECIMAL, /* Hex display */
FORMAT_BINARY, /* Binary display */
FORMAT_DECIMAL, /* Decimal display */
FORMAT_HEXADECIMAL, /* Hex display */
/* String representations of gdb's format codes (defined in varobj.c). */
extern char *varobj_format_string[];
/* String representations of gdb's format codes (defined in varobj.c). */
extern char *varobj_format_string[];
It lists the new children (which must necessarily come at the end
of the child list) added during an update. The caller is
responsible for freeing this vector. */
It lists the new children (which must necessarily come at the end
of the child list) added during an update. The caller is
responsible for freeing this vector. */
- /* The name of the INDEX'th child of PARENT. */
- char *(*name_of_child) (struct varobj *parent, int index);
+ /* The name of the INDEX'th child of PARENT. The returned value must be
+ freed by the caller. */
+ char *(*name_of_child) (const struct varobj *parent, int index);
char *(*path_expr_of_child) (const struct varobj *child);
/* The ``struct value *'' of the INDEX'th child of PARENT. */
char *(*path_expr_of_child) (const struct varobj *child);
/* The ``struct value *'' of the INDEX'th child of PARENT. */
char *(*value_of_variable) (const struct varobj *var,
enum varobj_display_formats format);
char *(*value_of_variable) (const struct varobj *var,
enum varobj_display_formats format);
reported by -var-update. Return zero if -var-update should never
report changes of such values. This makes sense for structures
(since the changes in children values will be reported separately),
reported by -var-update. Return zero if -var-update should never
report changes of such values. This makes sense for structures
(since the changes in children values will be reported separately),
Return value of 0 means that gdb need not call value_fetch_lazy
for the value of this variable object. */
Return value of 0 means that gdb need not call value_fetch_lazy
for the value of this variable object. */
-extern int varobj_delete (struct varobj *var, char ***dellist,
- int only_children);
+/* Delete a varobj and all its children if only_children == 0, otherwise delete
+ only the children. Return the number of deleted variables. */
+
+extern int varobj_delete (struct varobj *var, int only_children);
extern char *varobj_value_get_print_value (struct value *value,
enum varobj_display_formats format,
extern char *varobj_value_get_print_value (struct value *value,
enum varobj_display_formats format,