Lines Matching full:die
54 Dwarf_Die die,
69 dwarf_get_die_infotypes_flag(Dwarf_Die die) in dwarf_get_die_infotypes_flag() argument
71 return die->di_is_info; in dwarf_get_die_infotypes_flag()
154 dwarf_get_debugfission_for_die(Dwarf_Die die, in dwarf_get_debugfission_for_die() argument
162 CHECK_DIE(die, DW_DLV_ERROR); in dwarf_get_debugfission_for_die()
163 context = die->di_cu_context; in dwarf_get_debugfission_for_die()
223 _dwarf_get_fission_addition_die(Dwarf_Die die, int dw_sect_index, in _dwarf_get_fission_addition_die() argument
228 /* We do not yet know the DIE hash, so we cannot use it in _dwarf_get_fission_addition_die()
234 CHECK_DIE(die, DW_DLV_ERROR); in _dwarf_get_fission_addition_die()
235 context = die->di_cu_context; in _dwarf_get_fission_addition_die()
451 We cannot read the CU die and it's
555 DW5: hash in skeleton CU die in finish_cu_context_via_cudie_inner()
577 /* The CU die has no children */ in finish_cu_context_via_cudie_inner()
1265 "DW_AT_addr_base is not in the CU DIE."); in find_cu_die_base_fields()
1371 /* Now we can read the CU die and determine in finish_up_cu_context_from_cudie()
1653 From a skeleton DIE DW_AT_GNU_dwo_id ("cu" case) or
1679 The returned_die is a CU DIE if the sig_type is "cu".
1680 The returned_die is a type DIE if the sig_type is "tu".
1681 Perhaps both should return CU die.
1813 /* Validate the sibling DIE. This only makes sense to call
1816 so that the last DIE dwarf_child saw was the last.
1820 DIE traversed by dwarf_child is returned through *offset
1823 is a stale DIE pointer of a deallocated DIE when we get here.
1824 It must not be used as a DIE pointer here,
1867 this flag is true, it checks if the input die has
1869 a pointer to the start of the sibling die in the
1874 a pointer to the immediately adjacent die in the
1878 portion for the cu the die belongs to. It is used
1879 to check that the search for the next die does not
1885 the present die has children, false otherwise.
1886 However, in case want_AT_child is true and the die
2095 /* Given a Dwarf_Debug dbg, and a Dwarf_Die die, it returns
2096 a Dwarf_Die for the sibling of die. In case die is NULL,
2097 it returns (thru ptr) a Dwarf_Die for the first die in the current
2101 only one element is terminated with a NULL die, except a
2102 chain with only a NULL die.
2104 The algorithm moves from one die to the adjacent one. It
2108 encountered. Child_depth is incremented when a die has the
2109 Has-Child flag set unless the child happens to be a NULL die.
2110 Child_depth is decremented when a die has Has-Child false,
2111 and the adjacent die is NULL. Algorithm returns when
2114 **NOTE: Do not modify input die, since it is used at the end. */
2117 Dwarf_Die die, in dwarf_siblingof() argument
2125 res = _dwarf_siblingof_internal(dbg,die, in dwarf_siblingof()
2126 die?die->di_cu_context:dis->de_cu_context, in dwarf_siblingof()
2130 /* This is the new form, October 2011. On calling with 'die' NULL,
2135 Dwarf_Die die, in dwarf_siblingof_b() argument
2145 res = _dwarf_siblingof_internal(dbg,die, in dwarf_siblingof_b()
2146 die?die->di_cu_context:dis->de_cu_context, in dwarf_siblingof_b()
2153 Dwarf_Die die, in _dwarf_siblingof_internal() argument
2162 /* die_info_end points 1-past end of die (once set) */ in _dwarf_siblingof_internal()
2168 /* Since die may be NULL, we rely on the input argument. */ in _dwarf_siblingof_internal()
2177 if (die == NULL) { in _dwarf_siblingof_internal()
2178 /* Find root die of cu */ in _dwarf_siblingof_internal()
2201 /* Recording the CU die pointer so we can later access in _dwarf_siblingof_internal()
2207 /* Find sibling die. */ in _dwarf_siblingof_internal()
2211 /* We cannot have a legal die unless debug_info in _dwarf_siblingof_internal()
2214 CHECK_DIE(die, DW_DLV_ERROR); in _dwarf_siblingof_internal()
2216 die_info_ptr = die->di_debug_ptr; in _dwarf_siblingof_internal()
2220 context = die->di_cu_context; in _dwarf_siblingof_internal()
2241 /* There is something very wrong, our die value in _dwarf_siblingof_internal()
2298 /* Move out one DIE level. in _dwarf_siblingof_internal()
2330 die == NULL ? context : die->di_cu_context; in _dwarf_siblingof_internal()
2350 /* Zero means a null DIE */ in _dwarf_siblingof_internal()
2374 if (die == NULL && !is_cu_tag(ret_die->di_abbrev_list->abl_tag)) { in _dwarf_siblingof_internal()
2386 dwarf_child(Dwarf_Die die, in dwarf_child() argument
2393 /* die_info_end points one-past-end of die area. */ in dwarf_child()
2405 CHECK_DIE(die, DW_DLV_ERROR); in dwarf_child()
2406 dbg = die->di_cu_context->cc_dbg; in dwarf_child()
2407 dis = die->di_is_info? &dbg->de_info_reading: in dwarf_child()
2409 die_info_ptr = die->di_debug_ptr; in dwarf_child()
2411 /* We are saving a DIE pointer here, but the pointer in dwarf_child()
2413 dis->de_last_die = die; in dwarf_child()
2416 /* NULL die has no child. */ in dwarf_child()
2420 context = die->di_cu_context; in dwarf_child()
2424 die->di_cu_context, in dwarf_child()
2457 ret_die->di_cu_context = die->di_cu_context; in dwarf_child()
2458 ret_die->di_is_info = die->di_is_info; in dwarf_child()
2475 /* We have arrived at a null DIE, in dwarf_child()
2484 lres = _dwarf_get_abbrev_for_code(die->di_cu_context, abbrev_code, in dwarf_child()
2501 /* Given a (global, not cu_relative) die offset, this returns
2502 a pointer to a DIE thru *new_die.
2523 Dwarf_Die die = 0; in dwarf_offdie_b() local
2593 die = (Dwarf_Die) _dwarf_get_alloc(dbg, DW_DLA_DIE, 1); in dwarf_offdie_b()
2594 if (!die) { in dwarf_offdie_b()
2598 die->di_cu_context = cu_context; in dwarf_offdie_b()
2599 die->di_is_info = is_info; in dwarf_offdie_b()
2606 die->di_debug_ptr = info_ptr; in dwarf_offdie_b()
2613 dwarf_dealloc(dbg, die, DW_DLA_DIE); in dwarf_offdie_b()
2618 /* we are at a null DIE (or there is a bug). */ in dwarf_offdie_b()
2620 dwarf_dealloc(dbg, die, DW_DLA_DIE); in dwarf_offdie_b()
2623 die->di_abbrev_code = abbrev_code; in dwarf_offdie_b()
2625 &die->di_abbrev_list,error); in dwarf_offdie_b()
2627 dwarf_dealloc(dbg, die, DW_DLA_DIE); in dwarf_offdie_b()
2633 dwarf_dealloc(dbg,die, DW_DLA_DIE); in dwarf_offdie_b()
2643 *new_die = die; in dwarf_offdie_b()
2649 the DIE information presented by dwarfdump -i -G -v. */
2651 dwarf_die_abbrev_global_offset(Dwarf_Die die, in dwarf_die_abbrev_global_offset() argument
2659 CHECK_DIE(die, DW_DLV_ERROR); in dwarf_die_abbrev_global_offset()
2660 dbg = die->di_cu_context->cc_dbg; in dwarf_die_abbrev_global_offset()
2661 dal = die->di_abbrev_list; in dwarf_die_abbrev_global_offset()
2743 /* This is useful when printing DIE data.
2774 /* This one assumes is_info not known to caller but a DIE is known. */
2776 dwarf_get_die_section_name_b(Dwarf_Die die, in dwarf_get_die_section_name_b() argument
2784 CHECK_DIE(die, DW_DLV_ERROR); in dwarf_get_die_section_name_b()
2785 context = die->di_cu_context; in dwarf_get_die_section_name_b()