+2006-09-01 Mark Kettenis <kettenis@gnu.org>
+
+ Committed by Joel Brobecker <brobecker@adacore.com>
+ * gdbtypes.c (init_flags_type): Set all fields to zero instead of
+ just the first one.
+
2006-07-20 Daniel Jacobowitz <dan@codesourcery.com>
* dwarf2read.c (dwarf2_symbol_mark_computed): Handle corrupted
type = init_type (TYPE_CODE_FLAGS, length, TYPE_FLAG_UNSIGNED, name, NULL);
TYPE_NFIELDS (type) = nfields;
TYPE_FIELDS (type) = TYPE_ALLOC (type, nfields * sizeof (struct field));
- memset (TYPE_FIELDS (type), 0, sizeof (struct field));
+ memset (TYPE_FIELDS (type), 0, nfields * sizeof (struct field));
return type;
}