diff options
author | Tom Tromey <tom@tromey.com> | 2018-05-10 16:23:49 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-01-10 07:08:12 -0700 |
commit | 1d94a5a36a614cf7ebe259d7660f4fa725f38ee2 (patch) | |
tree | 17cae3bbca4a4c56858491ef9be5a9155e61a1e1 /gdb/symtab.h | |
parent | 0f14768a2a6ba894ae81010e8e70c99ecdb39a73 (diff) | |
download | binutils-gdb-1d94a5a36a614cf7ebe259d7660f4fa725f38ee2.tar.gz |
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/symtab.h')
-rw-r--r-- | gdb/symtab.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h index 7d97372de6b..57ed2c0948e 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -494,10 +494,11 @@ extern void symbol_set_language (struct general_symbol_info *symbol, /* Set the linkage and natural names of a symbol, by demangling the linkage name. */ #define SYMBOL_SET_NAMES(symbol,linkage_name,len,copy_name,objfile) \ - symbol_set_names (&(symbol)->ginfo, linkage_name, len, copy_name, objfile) + symbol_set_names (&(symbol)->ginfo, linkage_name, len, copy_name, \ + (objfile)->per_bfd) extern void symbol_set_names (struct general_symbol_info *symbol, const char *linkage_name, int len, int copy_name, - struct objfile *objfile); + struct objfile_per_bfd_storage *per_bfd); /* Now come lots of name accessor macros. Short version as to when to use which: Use SYMBOL_NATURAL_NAME to refer to the name of the @@ -734,7 +735,8 @@ struct minimal_symbol #define MSYMBOL_SEARCH_NAME(symbol) \ (symbol_search_name (&(symbol)->mginfo)) #define MSYMBOL_SET_NAMES(symbol,linkage_name,len,copy_name,objfile) \ - symbol_set_names (&(symbol)->mginfo, linkage_name, len, copy_name, objfile) + symbol_set_names (&(symbol)->mginfo, linkage_name, len, copy_name, \ + (objfile)->per_bfd) #include "minsyms.h" |