aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2025-03-11 11:22:59 -0600
committerTom Tromey <tom@tromey.com>2025-03-18 05:32:04 -0600
commitb91c25f6cd62985aa9600cc7451d717456b2a573 (patch)
treefbf1ff2d7337508bf9c986842d1f99d6e0a62fb9
parentaeeb41fcf7c9c3aec7333980fb24c633e7940ebd (diff)
downloadbinutils-b91c25f6cd62985aa9600cc7451d717456b2a573.zip
binutils-b91c25f6cd62985aa9600cc7451d717456b2a573.tar.gz
binutils-b91c25f6cd62985aa9600cc7451d717456b2a573.tar.bz2
Use gdb unordered map in target.c
This changes corelow.c to use gdb::unordered_map. Approved-By: Simon Marchi <simon.marchi@efficios.com>
-rw-r--r--gdb/target.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/target.c b/gdb/target.c
index b6d1abe..8d7f168 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -50,7 +50,7 @@
#include "gdbsupport/byte-vector.h"
#include "gdbsupport/search.h"
#include "terminal.h"
-#include <unordered_map>
+#include "gdbsupport/unordered_map.h"
#include "target-connection.h"
#include "valprint.h"
#include "cli/cli-decode.h"
@@ -72,7 +72,7 @@ static int default_verify_memory (struct target_ops *self,
TARGET_NAME" command that when invoked calls the factory registered
here. The target_info object is associated with the command via
the command's context. */
-static std::unordered_map<const target_info *, target_open_ftype *>
+static gdb::unordered_map<const target_info *, target_open_ftype *>
target_factories;
/* The singleton debug target. */