diff options
author | Tom Tromey <tom@tromey.com> | 2025-03-11 13:50:04 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2025-03-18 05:32:04 -0600 |
commit | 478d549db531b8d4b94d7e65965a3760a1e3358d (patch) | |
tree | e31d8122d121a5977edff5fbe1850638c58d2e38 /gdb/xml-tdesc.c | |
parent | 4d5ced441ab9598001f9ce1e2b61370dd036138f (diff) | |
download | binutils-478d549db531b8d4b94d7e65965a3760a1e3358d.zip binutils-478d549db531b8d4b94d7e65965a3760a1e3358d.tar.gz binutils-478d549db531b8d4b94d7e65965a3760a1e3358d.tar.bz2 |
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>
Diffstat (limited to 'gdb/xml-tdesc.c')
-rw-r--r-- | gdb/xml-tdesc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/xml-tdesc.c b/gdb/xml-tdesc.c index 436c493..f2db429 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. */ |