Lines Matching refs:parent
104 struct varobj *parent; member
217 static struct value *value_of_child (struct varobj *parent, int index);
231 static char *c_name_of_variable (struct varobj *parent);
233 static char *c_name_of_child (struct varobj *parent, int index);
237 static struct value *c_value_of_child (struct varobj *parent, int index);
239 static struct type *c_type_of_child (struct varobj *parent, int index);
251 static char *cplus_name_of_variable (struct varobj *parent);
253 static char *cplus_name_of_child (struct varobj *parent, int index);
257 static struct value *cplus_value_of_child (struct varobj *parent, int index);
259 static struct type *cplus_type_of_child (struct varobj *parent, int index);
269 static char *java_name_of_variable (struct varobj *parent);
271 static char *java_name_of_child (struct varobj *parent, int index);
275 static struct value *java_value_of_child (struct varobj *parent, int index);
277 static struct type *java_type_of_child (struct varobj *parent, int index);
292 int (*number_of_children) (struct varobj * parent);
295 char *(*name_of_variable) (struct varobj * parent);
298 char *(*name_of_child) (struct varobj * parent, int index);
304 struct value *(*value_of_child) (struct varobj * parent, int index);
307 struct type *(*type_of_child) (struct varobj * parent, int index);
1025 new = value_of_child (v->parent, v->index); in varobj_update()
1125 vc->child->parent = NULL; in delete_variable_1()
1149 if ((remove_from_parent_p) && (var->parent != NULL)) in delete_variable_1()
1151 remove_child_from_parent (var->parent, var); in delete_variable_1()
1298 create_child (struct varobj *parent, int index, char *name) in create_child() argument
1308 child->value = value_of_child (parent, index); in create_child()
1309 if ((!CPLUS_FAKE_CHILD (child) && child->value == NULL) || parent->error) in create_child()
1311 child->parent = parent; in create_child()
1312 child->root = parent->root; in create_child()
1313 childs_name = xstrprintf ("%s.%s", parent->obj_name, name); in create_child()
1318 save_child_in_parent (parent, child); in create_child()
1329 save_child_in_parent (struct varobj *parent, struct varobj *child) in save_child_in_parent() argument
1334 vc = parent->children; in save_child_in_parent()
1335 parent->children = in save_child_in_parent()
1338 parent->children->next = vc; in save_child_in_parent()
1339 parent->children->child = child; in save_child_in_parent()
1345 remove_child_from_parent (struct varobj *parent, struct varobj *child) in remove_child_from_parent() argument
1351 for (vc = parent->children; vc != NULL;) in remove_child_from_parent()
1360 parent->children = vc->next; in remove_child_from_parent()
1385 var->parent = NULL; in new_variable()
1737 value_of_child (struct varobj *parent, int index) in value_of_child() argument
1741 value = (*parent->root->lang->value_of_child) (parent, index); in value_of_child()
1767 return (*var->root->lang->type_of_child) (var->parent, var->index); in type_of_child()
1877 c_name_of_variable (struct varobj *parent) in c_name_of_variable() argument
1879 return savestring (parent->name, strlen (parent->name)); in c_name_of_variable()
1883 c_name_of_child (struct varobj *parent, int index) in c_name_of_child() argument
1890 type = get_type (parent); in c_name_of_child()
1915 name = xstrprintf ("*%s", parent->name); in c_name_of_child()
1987 c_value_of_child (struct varobj *parent, int index) in c_value_of_child() argument
1995 type = get_type (parent); in c_value_of_child()
1997 name = name_of_child (parent, index); in c_value_of_child()
1998 temp = parent->value; in c_value_of_child()
2051 c_type_of_child (struct varobj *parent, int index) in c_type_of_child() argument
2054 char *name = name_of_child (parent, index); in c_type_of_child()
2056 switch (TYPE_CODE (parent->type)) in c_type_of_child()
2059 type = get_target_type (parent->type); in c_type_of_child()
2064 type = lookup_struct_elt_type (parent->type, name, 0); in c_type_of_child()
2068 switch (TYPE_CODE (get_target_type (parent->type))) in c_type_of_child()
2072 type = lookup_struct_elt_type (parent->type, name, 0); in c_type_of_child()
2076 type = get_target_type (parent->type); in c_type_of_child()
2204 type = get_type_deref (var->parent); in cplus_number_of_children()
2250 cplus_name_of_variable (struct varobj *parent) in cplus_name_of_variable() argument
2252 return c_name_of_variable (parent); in cplus_name_of_variable()
2256 cplus_name_of_child (struct varobj *parent, int index) in cplus_name_of_child() argument
2261 if (CPLUS_FAKE_CHILD (parent)) in cplus_name_of_child()
2264 type = get_type_deref (parent->parent); in cplus_name_of_child()
2267 type = get_type_deref (parent); in cplus_name_of_child()
2274 if (CPLUS_FAKE_CHILD (parent)) in cplus_name_of_child()
2283 if (strcmp (parent->name, "private") == 0) in cplus_name_of_child()
2296 else if (strcmp (parent->name, "protected") == 0) in cplus_name_of_child()
2377 return c_name_of_child (parent, index); in cplus_name_of_child()
2394 cplus_value_of_child (struct varobj *parent, int index) in cplus_value_of_child() argument
2399 if (CPLUS_FAKE_CHILD (parent)) in cplus_value_of_child()
2400 type = get_type_deref (parent->parent); in cplus_value_of_child()
2402 type = get_type_deref (parent); in cplus_value_of_child()
2409 if (CPLUS_FAKE_CHILD (parent)) in cplus_value_of_child()
2412 struct value *temp = parent->parent->value; in cplus_value_of_child()
2417 name = name_of_child (parent, index); in cplus_value_of_child()
2433 if (parent->value != NULL) in cplus_value_of_child()
2437 if (TYPE_CODE (VALUE_TYPE (parent->value)) == TYPE_CODE_PTR in cplus_value_of_child()
2438 || TYPE_CODE (VALUE_TYPE (parent->value)) == TYPE_CODE_REF) in cplus_value_of_child()
2440 if (!gdb_value_ind (parent->value, &temp)) in cplus_value_of_child()
2444 temp = parent->value; in cplus_value_of_child()
2462 return c_value_of_child (parent, index); in cplus_value_of_child()
2468 cplus_type_of_child (struct varobj *parent, int index) in cplus_type_of_child() argument
2472 if (CPLUS_FAKE_CHILD (parent)) in cplus_type_of_child()
2475 t = get_type_deref (parent->parent); in cplus_type_of_child()
2478 t = get_type_deref (parent); in cplus_type_of_child()
2485 if (CPLUS_FAKE_CHILD (parent)) in cplus_type_of_child()
2487 char *name = cplus_name_of_child (parent, index); in cplus_type_of_child()
2505 return c_type_of_child (parent, index); in cplus_type_of_child()
2540 java_name_of_variable (struct varobj *parent) in java_name_of_variable() argument
2544 name = cplus_name_of_variable (parent); in java_name_of_variable()
2560 java_name_of_child (struct varobj *parent, int index) in java_name_of_child() argument
2564 name = cplus_name_of_child (parent, index); in java_name_of_child()
2585 java_value_of_child (struct varobj *parent, int index) in java_value_of_child() argument
2587 return cplus_value_of_child (parent, index); in java_value_of_child()
2591 java_type_of_child (struct varobj *parent, int index) in java_type_of_child() argument
2593 return cplus_type_of_child (parent, index); in java_type_of_child()