]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Use gdb unordered map in xml-tdesc.c
authorTom Tromey <tom@tromey.com>
Tue, 11 Mar 2025 19:50:04 +0000 (13:50 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 18 Mar 2025 11:32:04 +0000 (05:32 -0600)
This changes xml-tdesc.c to use gdb::unordered_map.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/xml-tdesc.c

index 436c493d4f914eb71a80bcbc08dc2ddd38c72027..f2db429c720fb59271ca37d2d2354c525d840fe8 100644 (file)
@@ -25,7 +25,7 @@
 #include "xml-tdesc.h"
 #include "osabi.h"
 #include "filenames.h"
-#include <unordered_map>
+#include "gdbsupport/unordered_map.h"
 #include <string>
 
 /* Maximum sizes.
@@ -64,7 +64,7 @@ tdesc_parse_xml (const char *document, xml_fetch_another fetcher)
    then we will create unnecessary duplicate gdbarches.  See
    gdbarch_list_lookup_by_info.  */
 
-static std::unordered_map<std::string, target_desc_up> xml_cache;
+static gdb::unordered_map<std::string, target_desc_up> xml_cache;
 
 /* Callback data for target description parsing.  */