From 4d5ced441ab9598001f9ce1e2b61370dd036138f Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 11 Mar 2025 13:49:30 -0600 Subject: Use gdb unordered set and map in unit tests This changes some unit test code to use gdb:unordered_set and gdb::unordered_map. Approved-By: Simon Marchi --- gdb/unittests/command-def-selftests.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gdb/unittests/command-def-selftests.c') diff --git a/gdb/unittests/command-def-selftests.c b/gdb/unittests/command-def-selftests.c index cf51f0d..1579511 100644 --- a/gdb/unittests/command-def-selftests.c +++ b/gdb/unittests/command-def-selftests.c @@ -20,8 +20,7 @@ #include "cli/cli-cmds.h" #include "cli/cli-decode.h" #include "gdbsupport/selftest.h" - -#include +#include "gdbsupport/unordered_map.h" namespace selftests { @@ -134,7 +133,7 @@ static unsigned int nr_invalid_prefixcmd = 0; /* A map associating a list with the prefix leading to it. */ -static std::map lists; +static gdb::unordered_map lists; /* Store each command list in lists, associated with the prefix to reach it. A list must only be found once. -- cgit v1.1