1 Oct 2003 19:34
Re: [rfa] add 'parent' field to struct die_info
Elena Zannoni <ezannoni <at> redhat.com>
2003-10-01 17:34:21 GMT
2003-10-01 17:34:21 GMT
David Carlton writes: > On 30 Sep 2003 17:09:38 -0500, Jim Blandy <jimb <at> redhat.com> said: > > > Looks great --- please commit. > > Thanks, done. > > > Adding the parent pointer is great. But I also really appreciate the > > child/sibling rearrangement... the way it stands is really confusing, > > and I think this is much more intuitive. > > That was my attitude, too: before, we were too closely tied to the > data structure that the debug info was originally stored in, for no > good reason. May I suggest to add a comment where the structure is defined that explains in plain English the structure/relations of the dies? From the Dwarf manual: "The ownership relation of debugging information entries is achieved naturally because the debugging information is represented as a tree. The nodes of the tree are the debugging information entries themselves. The child entries of any node are exactly those debugging information entries owned by that node. While the ownership relation of the debugging information entries is represented as a tree, other relations among the entries exist, for example, a pointer from an entry representing a variable to another entry representing the type of that variable. If all such relations are taken into account, the debugging entries form a graph, not a tree. The tree itself is represented by flattening it in prefix order. Each debugging(Continue reading)
RSS Feed