]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Use gdb unordered map in regcache.c
authorTom Tromey <tom@tromey.com>
Thu, 13 Mar 2025 22:45:24 +0000 (16:45 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 18 Mar 2025 11:34:00 +0000 (05:34 -0600)
This changes a couple spots in regcache.c to use gdb::unordered_map.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/regcache.c

index 65e69d25578aa5e7c06a63484ed370bfc4acc955..55087782bacf77fa515206cbae73a45d9ca6de61 100644 (file)
@@ -28,6 +28,7 @@
 #include "reggroups.h"
 #include "observable.h"
 #include "regset.h"
+#include "gdbsupport/unordered_map.h"
 #include <unordered_map>
 #include "cli/cli-cmds.h"
 
@@ -349,12 +350,12 @@ using ptid_regcache_map
 
 /* Type holding regcaches for a given pid.  */
 
-using pid_ptid_regcache_map = std::unordered_map<int, ptid_regcache_map>;
+using pid_ptid_regcache_map = gdb::unordered_map<int, ptid_regcache_map>;
 
 /* Type holding regcaches for a given target.  */
 
 using target_pid_ptid_regcache_map
-  = std::unordered_map<process_stratum_target *, pid_ptid_regcache_map>;
+  = gdb::unordered_map<process_stratum_target *, pid_ptid_regcache_map>;
 
 /* Global structure containing the existing regcaches.  */