]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Use gdb unordered map in target.c
authorTom Tromey <tom@tromey.com>
Tue, 11 Mar 2025 17:22:59 +0000 (11:22 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 18 Mar 2025 11:32:04 +0000 (05:32 -0600)
This changes corelow.c to use gdb::unordered_map.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/target.c

index b6d1abe82dbfd93df601c599fc03d744d9094d00..8d7f168db84b94de902dffe9dde2ced57e47cefa 100644 (file)
@@ -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.  */