From: Tom Tromey Date: Mon, 24 Feb 2025 22:35:04 +0000 (-0700) Subject: Use gdb set and map in source_cache X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d9c531fd6478ccfcb7fd5baf0dad54549508db9f;p=thirdparty%2Fbinutils-gdb.git Use gdb set and map in source_cache This changes source_cache to use gdb::unordered_map and gdb::unordered_set rather than the std:: variants. Approved-By: Simon Marchi --- diff --git a/gdb/source-cache.h b/gdb/source-cache.h index 35eeb1cb204..03f4b79778f 100644 --- a/gdb/source-cache.h +++ b/gdb/source-cache.h @@ -19,8 +19,8 @@ #ifndef GDB_SOURCE_CACHE_H #define GDB_SOURCE_CACHE_H -#include -#include +#include "gdbsupport/unordered_map.h" +#include "gdbsupport/unordered_set.h" /* This caches two things related to source files. @@ -95,10 +95,10 @@ private: /* The file offset cache. The key is the full name of the source file. */ - std::unordered_map> m_offset_cache; + gdb::unordered_map> m_offset_cache; /* The list of files where styling failed. */ - std::unordered_set m_no_styling_files; + gdb::unordered_set m_no_styling_files; }; /* The global source cache. */