aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2025-03-13 16:45:24 -0600
committerTom Tromey <tom@tromey.com>2025-03-18 05:34:00 -0600
commit1038e933021fb011d6680ff411ca6d02502dc883 (patch)
tree8f128aad14794dad99e1e01d9b84f6a6895cbfaf /gdb
parentfa52d173f9295399c272f6cea3154444d121193e (diff)
downloadbinutils-1038e933021fb011d6680ff411ca6d02502dc883.zip
binutils-1038e933021fb011d6680ff411ca6d02502dc883.tar.gz
binutils-1038e933021fb011d6680ff411ca6d02502dc883.tar.bz2
Use gdb unordered map in regcache.c
This changes a couple spots in regcache.c to use gdb::unordered_map. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb')
-rw-r--r--gdb/regcache.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index 65e69d2..5508778 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -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. */