OSDN Git Service

* dwarf2read.c (struct die_info): Doc fix.
authorJim Blandy <jimb@codesourcery.com>
Thu, 2 Oct 2003 17:13:16 +0000 (17:13 +0000)
committerJim Blandy <jimb@codesourcery.com>
Thu, 2 Oct 2003 17:13:16 +0000 (17:13 +0000)
gdb/ChangeLog
gdb/dwarf2read.c

index ff0aeff..155b52e 100644 (file)
@@ -1,3 +1,7 @@
+2003-10-02  Jim Blandy  <jimb@redhat.com>
+
+       * dwarf2read.c (struct die_info): Doc fix.
+
 2003-10-02  Corinna Vinschen  <vinschen@redhat.com>
 
        * sh-tdep.c: Running thru gdb_indent.sh.
index 3c3ec91..2514c7f 100644 (file)
@@ -320,9 +320,16 @@ struct die_info
     unsigned int num_attrs;    /* Number of attributes */
     struct attribute *attrs;   /* An array of attributes */
     struct die_info *next_ref; /* Next die in ref hash table */
+
+    /* 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.  */
     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.  */
+
     struct type *type;         /* Cached type information */
   };