[Dwarf-discuss] "null entry"
Mon May 23 16:06:52 PDT 2005
On Mon, May 23, 2005 at 04:05:12PM -0400, Bishop, John E wrote:
> I'll agree with the poster who said it was a pain to
> have zero not work as a null sibling pointer. But there's
> a work-around:
> Since the value of SW_AT_sibling is a reference, and a
> reference is an offset from a .debug_info section (this one
> or a remote one), zero would normally mean "the first DIE".
> So producers could issue a null DIE as the very first DIE,
> and then zero works! (or have I misunderstood something?)
Won't a DIE offset of zero give you the compilation unit header?
More information about the Dwarf-Discuss