[binutils-gdb] Use gdb unordered map in xml-tdesc.c
Tom Tromey
tromey@sourceware.org
Tue Mar 18 11:45:22 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=478d549db531b8d4b94d7e65965a3760a1e3358d
commit 478d549db531b8d4b94d7e65965a3760a1e3358d
Author: Tom Tromey <tom@tromey.com>
Date: Tue Mar 11 13:50:04 2025 -0600
Use gdb unordered map in xml-tdesc.c
This changes xml-tdesc.c to use gdb::unordered_map.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diff:
---
gdb/xml-tdesc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdb/xml-tdesc.c b/gdb/xml-tdesc.c
index 436c493d4f9..f2db429c720 100644
--- a/gdb/xml-tdesc.c
+++ b/gdb/xml-tdesc.c
@@ -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. */
More information about the Gdb-cvs
mailing list