mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
Allocate the address map on the psymtab obstack
After this patch, the psymtab address map will now be allocated on the psymtab obstack rather than the objfile obstack. This also changes the psymtab storage object to make the obstack private; this will be used later. gdb/ChangeLog 2019-01-10 Tom Tromey <tom@tromey.com> * psymtab.h (psymtab_storage::obstack): New method. <m_obstack>: Rename from obstack; now private. * psymtab.c (psymtab_storage): Update. * dwarf2read.c (create_addrmap_from_index) (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard): Update.
This commit is contained in:
@ -68,8 +68,8 @@ static struct compunit_symtab *psymtab_to_symtab (struct objfile *objfile,
|
||||
|
||||
|
||||
psymtab_storage::psymtab_storage (struct objfile *objfile)
|
||||
: obstack (&objfile->objfile_obstack),
|
||||
psymbol_cache (psymbol_bcache_init ())
|
||||
: psymbol_cache (psymbol_bcache_init ()),
|
||||
m_obstack (&objfile->objfile_obstack)
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user