#include "gdbsupport/def-vector.h"
#include "gdbarch.h"
#include "scoped-mock-context.h"
-
-#include <map>
+#include "gdbsupport/unordered_map.h"
namespace selftests {
scoped_mock_context<test_target_ops> mockctx (gdbarch);
/* Track the number of times each register name appears. */
- std::map<const std::string, int> name_counts;
+ gdb::unordered_map<std::string, int> name_counts;
const int num_regs = gdbarch_num_cooked_regs (gdbarch);
for (auto regnum = 0; regnum < num_regs; regnum++)
#include "cli/cli-cmds.h"
#include "cli/cli-decode.h"
#include "gdbsupport/selftest.h"
-
-#include <map>
+#include "gdbsupport/unordered_map.h"
namespace selftests {
/* A map associating a list with the prefix leading to it. */
-static std::map<cmd_list_element **, const char *> lists;
+static gdb::unordered_map<cmd_list_element **, const char *> lists;
/* Store each command list in lists, associated with the prefix to reach it. A
list must only be found once.
#include "gdbsupport/intrusive_list.h"
#include "gdbsupport/owning_intrusive_list.h"
#include "gdbsupport/selftest.h"
-#include <unordered_set>
+#include "gdbsupport/unordered_set.h"
/* Count of how many item_with_base or item_with_member objects are
currently alive. */
item_type a ("a"), b ("b"), c ("c");
ListType list;
std::vector<const item_type *> expected;
- std::unordered_set<const item_type *> disposer_seen;
+ gdb::unordered_set<const item_type *> disposer_seen;
int disposer_calls = 0;
list.push_back (a);