std::vector<ada_assign_up> assignments;
/* Track currently active iterated assignment names. */
- gdb::unordered_map<std::string, std::vector<ada_index_var_operation *>>
+ gdb::unordered_string_map<std::vector<ada_index_var_operation *>>
iterated_associations;
auto_obstack temp_space;
/* Map type lookup names to types. */
using amd_dbgapi_register_type_map
- = gdb::unordered_map<std::string, amd_dbgapi_register_type_up>;
+ = gdb::unordered_string_map<amd_dbgapi_register_type_up>;
/* Parse S as a ULONGEST, raise an error on overflow. */
regnum_map;
/* A map of register_class_ids keyed by their name. */
- gdb::unordered_map<std::string, amd_dbgapi_register_class_id_t>
+ gdb::unordered_string_map<amd_dbgapi_register_class_id_t>
register_class_map;
};
/* A type that maps a string to a build-id. */
using string_to_build_id_map
- = gdb::unordered_map<std::string, const bfd_build_id *>;
+ = gdb::unordered_string_map<const bfd_build_id *>;
/* A type that maps a build-id to a string. */
using build_id_to_string_map
void
core_target::build_file_mappings ()
{
- gdb::unordered_map<std::string, struct bfd *> bfd_map;
+ gdb::unordered_string_map<struct bfd *> bfd_map;
gdb::unordered_set<std::string> unavailable_paths;
/* All files mapped into the core file. The key is the filename. */
};
/* All files mapped into the core file. The key is the filename. */
- gdb::unordered_map<std::string, map_entry> mapped_files;
+ gdb::unordered_string_map<map_entry> mapped_files;
/* Get the build-id of the core file. At least on Linux, this will be
the build-id for the main executable. If other targets add the
}
/* Type used for collecting symbols. Maps names to symbols. */
-using symbol_map = gdb::unordered_map<std::string, block_symbol>;
+using symbol_map = gdb::unordered_string_map<block_symbol>;
/* This version of the function is internal, use the wrapper unless
the list of ambiguous symbols is needed.
/* Per-objfile cache mapping function names to resolved ifunc addresses. */
-using elf_gnu_ifunc_cache = gdb::unordered_map<std::string, CORE_ADDR>;
+using elf_gnu_ifunc_cache = gdb::unordered_string_map<CORE_ADDR>;
static const registry<objfile>::key<elf_gnu_ifunc_cache>
elf_objfile_gnu_ifunc_cache_data;
struct bfd_inferior_data
{
- gdb::unordered_map<std::string, unsigned long> bfd_error_string_counts;
+ gdb::unordered_string_map<unsigned long> bfd_error_string_counts;
};
/* Per-inferior data key. */
scoped_mock_context<test_target_ops> mockctx (gdbarch);
/* Track the number of times each register name appears. */
- gdb::unordered_map<std::string, int> name_counts;
+ gdb::unordered_string_map<int> name_counts;
const int num_regs = gdbarch_num_cooked_regs (gdbarch);
for (auto regnum = 0; regnum < num_regs; regnum++)
/* MI command table (built at run time). */
-static gdb::unordered_map<std::string, mi_command_up> mi_cmd_table;
+static gdb::unordered_string_map<mi_command_up> mi_cmd_table;
/* MI command with a pure MI implementation. */
};
inferior *m_inferior;
- gdb::unordered_map<std::string, refcnt_fd> m_cache;
+ gdb::unordered_string_map<refcnt_fd> m_cache;
};
int
int
rocm_solib_fd_cache::close (int fd, fileio_error *target_errno)
{
- using cache_val = gdb::unordered_map<std::string, refcnt_fd>::value_type;
+ using cache_val = gdb::unordered_string_map<refcnt_fd>::value_type;
auto it
= std::find_if (m_cache.begin (), m_cache.end (),
[fd](const cache_val &s) { return s.second.fd == fd; });
faster, and to be able to remove SOs from the map, to avoid
returning the dynamic linker multiple times. */
CORE_ADDR debug_base = info->namespace_id[nsid];
- gdb::unordered_map<std::string, const lm_info_svr4 *> namespace_solibs;
+ gdb::unordered_string_map<const lm_info_svr4 *> namespace_solibs;
for (svr4_so &so : info->solib_lists[debug_base])
namespace_solibs[so.name] = so.lm_info.get ();
/* The file offset cache. The key is the full name of the source
file. */
- gdb::unordered_map<std::string, std::vector<off_t>> m_offset_cache;
+ gdb::unordered_string_map<std::vector<off_t>> m_offset_cache;
/* The list of files where styling failed. */
gdb::unordered_set<std::string> m_no_styling_files;
/* The type for a data structure that maps a window name to that window's
factory function. */
-typedef gdb::unordered_map<std::string, window_factory> window_types_map;
+typedef gdb::unordered_string_map<window_factory> window_types_map;
/* Register a new TUI window type. NAME is the name of the window
type. FACTORY is a function that can be called to instantiate the
then we will create unnecessary duplicate gdbarches. See
gdbarch_list_lookup_by_info. */
-static gdb::unordered_map<std::string, target_desc_up> xml_cache;
+static gdb::unordered_string_map<target_desc_up> xml_cache;
/* Callback data for target description parsing. */