aboutsummaryrefslogtreecommitdiff
path: root/gdb/psymtab.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-05-10 16:23:49 -0600
committerTom Tromey <tom@tromey.com>2019-01-10 07:08:12 -0700
commit1d94a5a36a614cf7ebe259d7660f4fa725f38ee2 (patch)
tree17cae3bbca4a4c56858491ef9be5a9155e61a1e1 /gdb/psymtab.c
parent0f14768a2a6ba894ae81010e8e70c99ecdb39a73 (diff)
downloadbinutils-1d94a5a36a614cf7ebe259d7660f4fa725f38ee2.zip
binutils-1d94a5a36a614cf7ebe259d7660f4fa725f38ee2.tar.gz
binutils-1d94a5a36a614cf7ebe259d7660f4fa725f38ee2.tar.bz2
Change symbol_set_names to take an objfile_per_bfd_storage
This changes symbol_set_names to take an objfile_per_bfd_storage argument, and updates the users. It also changes PSYMBOL_SET_NAMES to take this argument directly; I feel this clarifies the storage location of objects created in psymtab.c. gdb/ChangeLog 2019-01-10 Tom Tromey <tom@tromey.com> * symtab.h (SYMBOL_SET_NAMES): Update. (symbol_set_names): Update. (MSYMBOL_SET_NAMES): Update. * symtab.c (symbol_set_names): Change argument to be an objfile_per_bfd_storage. * psymtab.c (add_psymbol_to_bcache): Update. * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
Diffstat (limited to 'gdb/psymtab.c')
-rw-r--r--gdb/psymtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/psymtab.c b/gdb/psymtab.c
index 356901f..418530d 100644
--- a/gdb/psymtab.c
+++ b/gdb/psymtab.c
@@ -1610,7 +1610,7 @@ add_psymbol_to_bcache (const char *name, int namelength, int copy_name,
memset (&psymbol.language_specific, 0, sizeof (psymbol.language_specific));
psymbol.ada_mangled = 0;
symbol_set_language (&psymbol, language, &objfile->objfile_obstack);
- symbol_set_names (&psymbol, name, namelength, copy_name, objfile);
+ symbol_set_names (&psymbol, name, namelength, copy_name, objfile->per_bfd);
/* Stash the partial symbol away in the cache. */
return psymbol_bcache_full (&psymbol, objfile->psymbol_cache, added);