From 76815b175e99f4edaeedf355839875661088fcbe Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Mon, 15 Sep 2008 01:22:02 +0000 Subject: * dwarf2read.c (struct die_info): Make members tag, num_attrs 16 bits. --- gdb/dwarf2read.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'gdb/dwarf2read.c') 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 -- cgit v1.1