From: Tom Tromey Date: Thu, 13 Mar 2025 22:45:24 +0000 (-0600) Subject: Use gdb unordered map in regcache.c X-Git-Tag: binutils-2_45~1130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1038e933021fb011d6680ff411ca6d02502dc883;p=thirdparty%2Fbinutils-gdb.git Use gdb unordered map in regcache.c This changes a couple spots in regcache.c to use gdb::unordered_map. Approved-By: Simon Marchi --- 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. */