[04/19] Use gdb unordered map in gdb_bfd.c

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

Commit Message

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

Patch

diff --git a/gdb/gdb_bfd.c b/gdb/gdb_bfd.c
index c233551b4e8b51ce577ab8fd7e1f8bebdc52ca6c..8380c5377a526d0624d0d34e9469f1016e4686bd 100644
--- a/gdb/gdb_bfd.c
+++ b/gdb/gdb_bfd.c
@@ -33,7 +33,7 @@ 
 #include "gdbsupport/fileio.h"
 #include "inferior.h"
 #include "cli/cli-style.h"
-#include <unordered_map>
+#include "gdbsupport/unordered_map.h"
 #include "gdbsupport/unordered_set.h"
 
 #if CXX_STD_THREAD
@@ -1207,7 +1207,7 @@  maintenance_info_bfds (const char *arg, int from_tty)
 
 struct bfd_inferior_data
 {
-  std::unordered_map<std::string, unsigned long> bfd_error_string_counts;
+  gdb::unordered_map<std::string, unsigned long> bfd_error_string_counts;
 };
 
 /* Per-inferior data key.  */