* elfread.c (elf_symtab_read): Put the filename in the filename
bcache.
This commit is contained in:
parent
04aba06513
commit
0af1e9a54b
2 changed files with 10 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2011-12-21 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* elfread.c (elf_symtab_read): Put the filename in the filename
|
||||||
|
bcache.
|
||||||
|
|
||||||
2011-12-21 Tom Tromey <tromey@redhat.com>
|
2011-12-21 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* symtab.h (struct minimal_symbol) <filename>: Now const.
|
* symtab.h (struct minimal_symbol) <filename>: Now const.
|
||||||
|
|
|
@ -43,6 +43,7 @@
|
||||||
#include "infcall.h"
|
#include "infcall.h"
|
||||||
#include "gdbthread.h"
|
#include "gdbthread.h"
|
||||||
#include "regcache.h"
|
#include "regcache.h"
|
||||||
|
#include "bcache.h"
|
||||||
|
|
||||||
extern void _initialize_elfread (void);
|
extern void _initialize_elfread (void);
|
||||||
|
|
||||||
|
@ -240,8 +241,8 @@ elf_symtab_read (struct objfile *objfile, int type,
|
||||||
seen any section info for it yet. */
|
seen any section info for it yet. */
|
||||||
asymbol *filesym = 0;
|
asymbol *filesym = 0;
|
||||||
/* Name of filesym. This is either a constant string or is saved on
|
/* Name of filesym. This is either a constant string or is saved on
|
||||||
the objfile's obstack. */
|
the objfile's filename cache. */
|
||||||
char *filesymname = "";
|
const char *filesymname = "";
|
||||||
struct dbx_symfile_info *dbx = objfile->deprecated_sym_stab_info;
|
struct dbx_symfile_info *dbx = objfile->deprecated_sym_stab_info;
|
||||||
int stripped = (bfd_get_symcount (objfile->obfd) == 0);
|
int stripped = (bfd_get_symcount (objfile->obfd) == 0);
|
||||||
|
|
||||||
|
@ -346,9 +347,8 @@ elf_symtab_read (struct objfile *objfile, int type,
|
||||||
sectinfo = NULL;
|
sectinfo = NULL;
|
||||||
}
|
}
|
||||||
filesym = sym;
|
filesym = sym;
|
||||||
filesymname =
|
filesymname = bcache (filesym->name, strlen (filesym->name) + 1,
|
||||||
obsavestring ((char *) filesym->name, strlen (filesym->name),
|
objfile->filename_cache);
|
||||||
&objfile->objfile_obstack);
|
|
||||||
}
|
}
|
||||||
else if (sym->flags & BSF_SECTION_SYM)
|
else if (sym->flags & BSF_SECTION_SYM)
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue