[commit] dwarf2read.c (struct die_info): Fix comment.
Doug Evans
dje@google.com
Wed Sep 15 20:18:00 GMT 2010
fyi,
I checked this in.
I think there's no reason to have to document how the list is terminated
(given that it's the obvious way).
And the previously specified reason was wrong.
2010-09-15 Doug Evans <dje@google.com>
* dwarf2read.c (struct die_info): Fix comment.
Index: dwarf2read.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2read.c,v
retrieving revision 1.457
diff -u -p -r1.457 dwarf2read.c
--- dwarf2read.c 14 Sep 2010 21:28:53 -0000 1.457
+++ dwarf2read.c 15 Sep 2010 18:11:22 -0000
@@ -669,8 +669,7 @@ struct die_info
/* The dies in a compilation unit form an n-ary tree. PARENT
points to this die's parent; CHILD points to the first child of
this node; and all the children of a given node are chained
- together via their SIBLING fields, terminated by a die whose
- tag is zero. */
+ together via their SIBLING fields. */
struct die_info *child; /* Its first child, if any. */
struct die_info *sibling; /* Its next sibling, if any. */
struct die_info *parent; /* Its parent, if any. */
More information about the Gdb-patches
mailing list