diff options
author | Tom Tromey <tromey@redhat.com> | 2012-08-22 16:01:09 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-08-22 16:01:09 +0000 |
commit | 706e37059fbfed5beb9fe02921483809dfd86e5b (patch) | |
tree | d604042d166fc7545502657f9171d6210f4acc9e /gdb/elfread.c | |
parent | e992eda4f6cece4cccbad807b1307168de924174 (diff) | |
download | gdb-706e37059fbfed5beb9fe02921483809dfd86e5b.zip gdb-706e37059fbfed5beb9fe02921483809dfd86e5b.tar.gz gdb-706e37059fbfed5beb9fe02921483809dfd86e5b.tar.bz2 |
* elfread.c (elf_symtab_read): Update.
* objfiles.c (objfiles_bfd_data): New global.
(get_objfile_bfd_data, free_objfile_per_bfd_storage)
(objfile_bfd_data_free, set_objfile_per_bfd): New functions.
(allocate_objfile, free_objfile): Update.
(_initialize_objfiles): Initialize objfiles_bfd_data.
* objfiles.h (struct objfile_per_bfd_storage): New.
(struct objfile) <per_bfd>: New field.
<filename_cache>: Remove.
(set_objfile_per_bfd): Declare.
* symfile.c (reread_symbols): Update. Call
set_objfile_per_bfd.
(allocate_symtab): Update.
* symmisc.c (print_symbol_bcache_statistics): Update.
(print_objfile_statistics): Print the size of the BFD obstack.
gdb/testsuite
* gdb.base/maint.exp: Update.
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r-- | gdb/elfread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c index 22ac158..f3967d7 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -353,7 +353,7 @@ elf_symtab_read (struct objfile *objfile, int type, } filesym = sym; filesymname = bcache (filesym->name, strlen (filesym->name) + 1, - objfile->filename_cache); + objfile->per_bfd->filename_cache); } else if (sym->flags & BSF_SECTION_SYM) continue; |