diff options
author | Doug Evans <dje@google.com> | 2008-09-15 01:22:02 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2008-09-15 01:22:02 +0000 |
commit | 76815b175e99f4edaeedf355839875661088fcbe (patch) | |
tree | 4d8c4de270a1345ae838bbcb846f00e492990d0f | |
parent | 8ee9f668e81ef1e4270be017a0729d8142b02f7a (diff) | |
download | gdb-76815b175e99f4edaeedf355839875661088fcbe.zip gdb-76815b175e99f4edaeedf355839875661088fcbe.tar.gz gdb-76815b175e99f4edaeedf355839875661088fcbe.tar.bz2 |
* dwarf2read.c (struct die_info): Make members tag, num_attrs 16 bits.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 15 |
2 files changed, 15 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 06f4e87..edce9ae 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2008-09-14 Doug Evans <dje@google.com> + + * dwarf2read.c (struct die_info): Make members tag, num_attrs 16 bits. + 2008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> * hppa-linux-tdep.c (hppa_linux_supply_fpregset): Correct iteration. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 2a4acb9..ee5160c 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -536,10 +536,17 @@ struct attribute /* This data structure holds a complete die structure. */ struct die_info { - enum dwarf_tag tag; /* Tag indicating type of die */ - unsigned int abbrev; /* Abbrev number */ - unsigned int offset; /* Offset in .debug_info section */ - unsigned int num_attrs; /* Number of attributes */ + /* DWARF-2 tag for this DIE. */ + ENUM_BITFIELD(dwarf_tag) tag : 16; + + /* Number of attributes */ + unsigned short num_attrs; + + /* Abbrev number */ + unsigned int abbrev; + + /* Offset in .debug_info section */ + unsigned int offset; /* 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 |