[16/19] Use gdb unordered map in xml-tdesc.c

Message ID 20250317-replace-std-stuff-v1-16-7ba4ee88e218@tromey.com
State New
Headers
Series Convert std::unordered_{set,map} to gdb implementations |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 fail Patch failed to apply
linaro-tcwg-bot/tcwg_gdb_build--master-arm fail Patch failed to apply

Commit Message

Tom Tromey March 18, 2025, 2:15 a.m. UTC
  This changes xml-tdesc.c to use gdb::unordered_map.
---
 gdb/xml-tdesc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/gdb/xml-tdesc.c b/gdb/xml-tdesc.c
index 436c493d4f914eb71a80bcbc08dc2ddd38c72027..f2db429c720fb59271ca37d2d2354c525d840fe8 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.  */