From 8b93c54cd74f951dba7ded460baa8a587799b33d Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 27 Aug 2010 21:03:39 +0000 Subject: [PATCH] * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set TYPE_FIELD_IGNORE_BITS. --- gdb/ChangeLog | 5 +++++ gdb/dwarf2read.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 874a078af5d..5280cc488b1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-08-27 Tom Tromey + + * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set + TYPE_FIELD_IGNORE_BITS. + 2010-08-27 Doug Evans * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 06ee486e65a..ebab2652ddd 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -6266,9 +6266,9 @@ dwarf2_attach_fields_to_type (struct field_info *fip, struct type *type, (B_TYPE *) TYPE_ALLOC (type, B_BYTES (nfields)); B_CLRALL (TYPE_FIELD_PROTECTED_BITS (type), nfields); - TYPE_FIELD_IGNORE_BITS (type) = - (B_TYPE *) TYPE_ALLOC (type, B_BYTES (nfields)); - B_CLRALL (TYPE_FIELD_IGNORE_BITS (type), nfields); + /* We don't set TYPE_FIELD_IGNORE_BITS here. The DWARF reader + never sets any bits in that array, so leaving it NULL lets us + save a little memory. */ } /* If the type has baseclasses, allocate and clear a bit vector for -- 2.30.2