diff options
author | Tom Tromey <tom@tromey.com> | 2025-03-11 11:20:48 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2025-03-18 05:32:03 -0600 |
commit | f9868995b4b8b7f0abeaf53365181fc05e54ee1f (patch) | |
tree | 5b132f9d3d61a0489cfaaf2c7b0163807a0e7f18 /gdb | |
parent | cd0f7432a8b6c833b254c7a547d10f320c0b2d8a (diff) | |
download | binutils-f9868995b4b8b7f0abeaf53365181fc05e54ee1f.zip binutils-f9868995b4b8b7f0abeaf53365181fc05e54ee1f.tar.gz binutils-f9868995b4b8b7f0abeaf53365181fc05e54ee1f.tar.bz2 |
Use gdb unordered map in linux-nat.c
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>
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/linux-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c index 735d20d..fec6a63 100644 --- a/gdb/linux-tdep.c +++ b/gdb/linux-tdep.c @@ -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. */ |