]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Use gdb unordered map in linux-nat.c
authorTom Tromey <tom@tromey.com>
Tue, 11 Mar 2025 17:20:48 +0000 (11:20 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 18 Mar 2025 11:32:03 +0000 (05:32 -0600)
This changes one spot in linux-nat.c to use gdb::unordered_map.
(There are still other spots that could be converted.)

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

index 735d20dc05011e558d46819108e41a251a8ee154..fec6a6343d720d4a8d9a801dbe3ff4581b5c9a05 100644 (file)
@@ -44,9 +44,9 @@
 #include "solib-svr4.h"
 #include "memtag.h"
 #include "cli/cli-style.h"
+#include "gdbsupport/unordered_map.h"
 
 #include <ctype.h>
-#include <unordered_map>
 
 /* This enum represents the values that the user can choose when
    informing the Linux kernel about which memory mappings will be
@@ -1189,7 +1189,7 @@ linux_read_core_file_mappings
     warning (_("malformed note - filename area is too big"));
 
   const bfd_build_id *orig_build_id = cbfd->build_id;
-  std::unordered_map<ULONGEST, const bfd_build_id *> vma_map;
+  gdb::unordered_map<ULONGEST, const bfd_build_id *> vma_map;
 
   /* Search for solib build-ids in the core file.  Each time one is found,
      map the start vma of the corresponding elf header to the build-id.  */