die->building_fullname = 1;
- for (child = die->child; child != NULL; child = child->sibling)
+ for (child = die->child; child != NULL; child = child->next)
{
struct type *type;
LONGEST value;
if (die->tag == DW_TAG_imported_module
&& cu->lang () == language_fortran)
for (child_die = die->child; child_die && child_die->tag;
- child_die = child_die->sibling)
+ child_die = child_die->next)
{
/* DWARF-4: A Fortran use statement with a “rename list” may be
represented by an imported module entry with an import attribute
while (child_die && child_die->tag)
{
process_die (child_die, cu);
- child_die = child_die->sibling;
+ child_die = child_die->next;
}
}
per_objfile->sym_cu = nullptr;
while (child_die && child_die->tag)
{
process_die (child_die, cu);
- child_die = child_die->sibling;
+ child_die = child_die->next;
}
}
}
break;
}
- concrete_child = concrete_child->sibling;
- abstract_child = abstract_child->sibling;
+ concrete_child = concrete_child->next;
+ abstract_child = abstract_child->next;
}
/* Walk the origin's children in parallel to the concrete children.
for (die_info *child_die = die->child;
child_die && child_die->tag;
- child_die = child_die->sibling)
+ child_die = child_die->next)
{
/* We are trying to process concrete instance entries:
DW_TAG_call_site DIEs indeed have a DW_AT_abstract_origin tag, but
{
if (are_isomorphic)
corresponding_abstract_child
- = corresponding_abstract_child->sibling;
+ = corresponding_abstract_child->next;
continue;
}
}
if (are_isomorphic)
- corresponding_abstract_child = corresponding_abstract_child->sibling;
+ corresponding_abstract_child = corresponding_abstract_child->next;
}
if (!offsets.empty ())
process_die (origin_child_die, origin_cu);
}
- origin_child_die = origin_child_die->sibling;
+ origin_child_die = origin_child_die->next;
}
origin_cu->list_in_scope = origin_previous_list_in_scope;
/* If we have any template arguments, then we must allocate a
different sort of symbol. */
- for (child_die = die->child; child_die; child_die = child_die->sibling)
+ for (child_die = die->child; child_die; child_die = child_die->next)
{
if (child_die->tag == DW_TAG_template_type_param
|| child_die->tag == DW_TAG_template_value_param)
}
else
process_die (child_die, cu);
- child_die = child_die->sibling;
+ child_die = child_die->next;
}
}
{
if (child_die->tag == DW_TAG_imported_module)
process_die (child_die, spec_cu);
- child_die = child_die->sibling;
+ child_die = child_die->next;
}
/* In some cases, GCC generates specification DIEs that
GCC does no longer produces such DWARF since GCC r224161. */
for (child_die = die->child;
child_die != NULL && child_die->tag;
- child_die = child_die->sibling)
+ child_die = child_die->next)
{
/* We might already be processing this DIE. This can happen
in an unusual circumstance -- where a subroutine A
while (child_die && child_die->tag)
{
process_die (child_die, cu);
- child_die = child_die->sibling;
+ child_die = child_die->next;
}
}
inherit_abstract_dies (die, cu);
nparams = 0;
for (child_die = die->child; child_die && child_die->tag;
- child_die = child_die->sibling)
+ child_die = child_die->next)
{
if (child_die->tag != DW_TAG_call_site_parameter
&& child_die->tag != DW_TAG_GNU_call_site_parameter)
for (child_die = die->child;
child_die && child_die->tag;
- child_die = child_die->sibling)
+ child_die = child_die->next)
{
struct call_site_parameter *parameter;
struct attribute *loc, *origin;
if (child->tag == DW_TAG_subprogram
|| child->tag == DW_TAG_lexical_block)
dwarf2_get_subprogram_pc_bounds (child, lowpc, highpc, cu);
- child = child->sibling;
+ child = child->next;
}
}
break;
}
- child = child->sibling;
+ child = child->next;
}
}
for (die_info *child_die = die->child;
child_die != NULL;
- child_die = child_die->sibling)
+ child_die = child_die->next)
handle_struct_member_die (child_die, type, fi, template_args, cu);
}
for (die_info *variant_child = die->child;
variant_child != NULL;
- variant_child = variant_child->sibling)
+ variant_child = variant_child->next)
handle_struct_member_die (variant_child, type, fi, template_args, cu);
variant.last_field = fi->fields.size ();
while (child_die && child_die->tag)
{
handle_struct_member_die (child_die, type, &fi, &template_args, cu);
- child_die = child_die->sibling;
+ child_die = child_die->next;
}
/* Attach template arguments to type. */
else
process_die (child_die, cu);
- child_die = child_die->sibling;
+ child_die = child_die->next;
}
/* Do not consider external references. According to the DWARF standard,
for (child_die = die->child;
child_die != NULL && child_die->tag;
- child_die = child_die->sibling)
+ child_die = child_die->next)
{
struct attribute *attr;
LONGEST value;
else
new_symbol (child_die, this_type, cu);
- child_die = child_die->sibling;
+ child_die = child_die->next;
}
}
std::vector<struct field> range_fields;
for (struct die_info *child_die = die->child;
child_die;
- child_die = child_die->sibling)
+ child_die = child_die->next)
{
if (child_die->tag == DW_TAG_subrange_type)
{
range_types.push_back (child_type);
}
}
- child_die = child_die->sibling;
+ child_die = child_die->next;
}
if (range_types.empty ())
for (child_die = die->child;
child_die && child_die->tag;
- child_die = child_die->sibling)
+ child_die = child_die->next)
++n_entries;
size = (sizeof (struct common_block)
for (child_die = die->child;
child_die && child_die->tag;
- child_die = child_die->sibling)
+ child_die = child_die->next)
{
/* Create the symbol in the DW_TAG_common_block block in the current
symbol scope. */
while (child_die && child_die->tag)
{
process_die (child_die, cu);
- child_die = child_die->sibling;
+ child_die = child_die->next;
}
}
}
while (child_die && child_die->tag)
{
process_die (child_die, cu);
- child_die = child_die->sibling;
+ child_die = child_die->next;
}
}
else if (child_die->tag == DW_TAG_unspecified_parameters)
ftype->set_has_varargs (true);
- child_die = child_die->sibling;
+ child_die = child_die->next;
}
/* Allocate storage for parameters and fill them in. */
ftype->field (iparams).set_type (arg_type);
iparams++;
}
- child_die = child_die->sibling;
+ child_die = child_die->next;
}
}
return set_die_type (die, type, cu);
}
-/* Read a single die and all its descendents. Set the die's sibling
+/* Read a single die and all its descendents. Set the die's next
field to NULL; set other fields in the die correctly, and set all
of the descendents' fields correctly. PARENT is the parent of the
die in question. */
else
die->child = nullptr;
- die->sibling = nullptr;
+ die->next = nullptr;
die->parent = parent;
return die;
}
if (first_die == nullptr)
first_die = die;
else
- last_sibling->sibling = die;
+ last_sibling->next = die;
last_sibling = die;
}
and updating die_info::num_attrs.
Return a newly allocated die with its information, except for its
- child, sibling, and parent fields. */
+ child, next, and parent fields. */
die_info *
cutu_reader::read_full_die (int num_extra_attrs, bool allow_reprocess)
/* Read a die and all its attributes.
Return a newly allocated die with its information, except for its
- child, sibling, and parent fields. */
+ child, next, and parent fields. */
die_info *
cutu_reader::read_toplevel_die (gdb::array_view<attribute *> extra_attrs)
for (child = die->child;
child != NULL;
- child = child->sibling)
+ child = child->next)
{
if (child->tag == DW_TAG_subprogram)
{
if (dwarf2_attr (child, DW_AT_name, cu) == nullptr)
++nth_unnamed;
}
- child = child->sibling;
+ child = child->next;
}
const std::string name_str = "<unnamed" + std::to_string (nth_unnamed) + ">";