From 1038e933021fb011d6680ff411ca6d02502dc883 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 13 Mar 2025 16:45:24 -0600 Subject: [PATCH] Use gdb unordered map in regcache.c This changes a couple spots in regcache.c to use gdb::unordered_map. Approved-By: Simon Marchi --- gdb/regcache.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gdb/regcache.c b/gdb/regcache.c index 65e69d25578..55087782bac 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 #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; +using pid_ptid_regcache_map = gdb::unordered_map; /* Type holding regcaches for a given target. */ using target_pid_ptid_regcache_map - = std::unordered_map; + = gdb::unordered_map; /* Global structure containing the existing regcaches. */ -- 2.47.2