From: Tom Tromey Date: Tue, 11 Mar 2025 19:50:04 +0000 (-0600) Subject: Use gdb unordered map in xml-tdesc.c X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=478d549db531b8d4b94d7e65965a3760a1e3358d;p=thirdparty%2Fbinutils-gdb.git Use gdb unordered map in xml-tdesc.c This changes xml-tdesc.c to use gdb::unordered_map. Approved-By: Simon Marchi --- 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 +#include "gdbsupport/unordered_map.h" #include /* 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 xml_cache; +static gdb::unordered_map xml_cache; /* Callback data for target description parsing. */