mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-21 01:12:32 +08:00
put the psymtab filename in the filename bcache
This puts the psymtab filename in the filename bcache. This saves a small amount of memory. 2013-12-06 Tom Tromey <tromey@redhat.com> * psymtab.c (allocate_psymtab): Put the filename in the filename bcache.
This commit is contained in:
parent
8e96694e31
commit
bf121224c7
@ -1,3 +1,8 @@
|
||||
2013-12-06 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* psymtab.c (allocate_psymtab): Put the filename in the filename
|
||||
bcache.
|
||||
|
||||
2013-12-06 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
|
||||
|
@ -1742,8 +1742,8 @@ allocate_psymtab (const char *filename, struct objfile *objfile)
|
||||
sizeof (struct partial_symtab));
|
||||
|
||||
memset (psymtab, 0, sizeof (struct partial_symtab));
|
||||
psymtab->filename = obstack_copy0 (&objfile->objfile_obstack,
|
||||
filename, strlen (filename));
|
||||
psymtab->filename = bcache (filename, strlen (filename) + 1,
|
||||
objfile->per_bfd->filename_cache);
|
||||
psymtab->symtab = NULL;
|
||||
|
||||
/* Prepend it to the psymtab list for the objfile it belongs to.
|
||||
|
Loading…
Reference in New Issue
Block a user