aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2003-10-02 17:13:16 +0000
committerJim Blandy <jimb@codesourcery.com>2003-10-02 17:13:16 +0000
commit78ba4af6ad1579b7c028db434d636f80815bd543 (patch)
treebb72cfaac4fdd63ae428d05f5d95f4993fcbb360 /gdb/dwarf2read.c
parentb95f6b0c7ee0e107c6ff836573716187a73ffd8b (diff)
downloadgdb-78ba4af6ad1579b7c028db434d636f80815bd543.zip
gdb-78ba4af6ad1579b7c028db434d636f80815bd543.tar.gz
gdb-78ba4af6ad1579b7c028db434d636f80815bd543.tar.bz2
* dwarf2read.c (struct die_info): Doc fix.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 3c3ec91..2514c7f 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -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 */
};