#include <algorithm>
#include "safe-ctype.h"
#include "gdbsupport/parallel-for.h"
-#include "maint.h"
#if CXX_STD_THREAD
#include <mutex>
{
if (sym->demangled_hash_next == NULL)
{
- objfile->per_bfd->demangled_hash_languages.set (MSYMBOL_LANGUAGE (sym));
+ objfile->per_bfd->demangled_hash_languages.set (sym->language ());
struct minimal_symbol **table
= objfile->per_bfd->msymbol_demangled_hash;
m_msym_bunch = newobj;
}
msymbol = &m_msym_bunch->contents[m_msym_bunch_index];
- symbol_set_language (msymbol, language_auto,
- &m_objfile->per_bfd->storage_obstack);
+ msymbol->set_language (language_auto,
+ &m_objfile->per_bfd->storage_obstack);
if (copy_name)
msymbol->name = obstack_strndup (&m_objfile->per_bfd->storage_obstack,
else
msymbol->name = name.data ();
- if (worker_threads_disabled ())
- {
- /* To keep our behavior as close as possible to the previous non-threaded
- behavior for GDB 9.1, we call symbol_set_names here when threads
- are disabled. */
- symbol_set_names (msymbol, msymbol->name, false, m_objfile->per_bfd);
- msymbol->name_set = 1;
- }
-
SET_MSYMBOL_VALUE_ADDRESS (msymbol, address);
MSYMBOL_SECTION (msymbol) = section;
build_minimal_symbol_hash_tables. */
if (msym->search_name () != msym->linkage_name ())
hash_values[idx].minsym_demangled_hash
- = search_name_hash (MSYMBOL_LANGUAGE (msym),
- msym->search_name ());
+ = search_name_hash (msym->language (), msym->search_name ());
}
{
/* To limit how long we hold the lock, we only acquire it here