diff options
author | Fred Fish <fnf@specifix.com> | 1992-08-24 00:13:11 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1992-08-24 00:13:11 +0000 |
commit | dac9734e5892a69910e8bc28f0983b05d99b6e3f (patch) | |
tree | fdce425624908bc728e0e9c6f580970a124293e7 /gdb/dwarfread.c | |
parent | ca8820f938c1f65dbd767cd52a6df212b34f4ca3 (diff) | |
download | gdb-dac9734e5892a69910e8bc28f0983b05d99b6e3f.zip gdb-dac9734e5892a69910e8bc28f0983b05d99b6e3f.tar.gz gdb-dac9734e5892a69910e8bc28f0983b05d99b6e3f.tar.bz2 |
* coffread.c (decode_type): Call alloc_type to alloc new
types.
* stabsread.c (read_array_type, read_range_type, define_symbol):
Call alloc_type to alloc new types.
* stabsread.c (define_symbol): Move dbl_valu symbol field data
from type_obstack to symbol_obstack.
* stabsread.c (define_symbol): Move typedef_sym from type_obstack
to symbol_obstack.
* gdbtypes.h (TYPE_ALLOC): New macro to allocate space for data
associated with a type, using the same mechanism as was used to
allocate space for the type structure itself.
* coffread.c (patch_type, coff_read_struct_type,
coff_read_enum_type): Use TYPE_ALLOC.
* dwarfread.c (struct_type): Use TYPE_ALLOC.
* gdbtypes.c (create_array_type, check_stub_method,
allocate_cplus_struct_type): Use TYPE_ALLOC.
* mipsread.c (parse_symbol, parse_type): Use TYPE_ALLOC.
* stabsread.c (read_struct_type, read_array_type, read_enum_type,
read_range_type): Use TYPE_ALLOC.
Diffstat (limited to 'gdb/dwarfread.c')
-rw-r--r-- | gdb/dwarfread.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c index 6844813..4c340ef 100644 --- a/gdb/dwarfread.c +++ b/gdb/dwarfread.c @@ -935,8 +935,7 @@ struct_type (dip, thisdie, enddie, objfile) { TYPE_NFIELDS (type) = nfields; TYPE_FIELDS (type) = (struct field *) - obstack_alloc (&objfile -> type_obstack, - sizeof (struct field) * nfields); + TYPE_ALLOC (type, sizeof (struct field) * nfields); /* Copy the saved-up fields into the field vector. */ for (n = nfields; list; list = list -> next) { |