mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-18 11:49:10 +08:00
Don't allocate DWO file hash on obstack
This changes allocate_dwo_file_hash_table so that it does not use the objfile obstack to store the contents of the hash table. 2020-02-08 Tom Tromey <tom@tromey.com> * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on obstack. Change-Id: Ic20a618acc7277e56aa18580c68f75c793bef97b
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2020-02-08 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
|
* dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
|
||||||
|
obstack.
|
||||||
|
|
||||||
2020-02-08 Tom Tromey <tom@tromey.com>
|
2020-02-08 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
* dwarf2/read.c (~dwarf2_per_objfile): Don't delete
|
* dwarf2/read.c (~dwarf2_per_objfile): Don't delete
|
||||||
|
@ -11417,13 +11417,11 @@ allocate_dwo_file_hash_table (struct objfile *objfile)
|
|||||||
delete dwo_file;
|
delete dwo_file;
|
||||||
};
|
};
|
||||||
|
|
||||||
return htab_up (htab_create_alloc_ex (41,
|
return htab_up (htab_create_alloc (41,
|
||||||
hash_dwo_file,
|
hash_dwo_file,
|
||||||
eq_dwo_file,
|
eq_dwo_file,
|
||||||
delete_dwo_file,
|
delete_dwo_file,
|
||||||
&objfile->objfile_obstack,
|
xcalloc, xfree));
|
||||||
hashtab_obstack_allocate,
|
|
||||||
dummy_obstack_deallocate));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Lookup DWO file DWO_NAME. */
|
/* Lookup DWO file DWO_NAME. */
|
||||||
|
Reference in New Issue
Block a user