aboutsummaryrefslogtreecommitdiff
path: root/gdbserver/linux-aarch64-tdesc.cc
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2024-11-25 22:16:48 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2024-11-25 22:20:39 -0500
commit74f8902dddbfa60bceae086be2c34ee7f1ca3c37 (patch)
treed20a0bb37e4307b2086253f8828ab5b67e087913 /gdbserver/linux-aarch64-tdesc.cc
parente1bb778eabc85d262e368fdd6fbcee57b02c1bba (diff)
downloadgdb-users/simark/try-gdbserver-unordered-map.zip
gdb-users/simark/try-gdbserver-unordered-map.tar.gz
gdb-users/simark/try-gdbserver-unordered-map.tar.bz2
gdbserver: use `gdb::unordered_map`users/simark/try-gdbserver-unordered-map
Replace the few uses of `std::unordered_map` with `gdb::unordered_map`. The only one of these that is likely to ever see a lot of elements is probably `process_info::m_ptid_thread_map`. It was added precisely to improve performance when there are a lot of threads. So using `gdb::unordered_map` here won't hurt. Change-Id: Ibc4ede5245551fdd7717cb349a012d05726f4363
Diffstat (limited to 'gdbserver/linux-aarch64-tdesc.cc')
-rw-r--r--gdbserver/linux-aarch64-tdesc.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdbserver/linux-aarch64-tdesc.cc b/gdbserver/linux-aarch64-tdesc.cc
index 39d5bcc..52642d5 100644
--- a/gdbserver/linux-aarch64-tdesc.cc
+++ b/gdbserver/linux-aarch64-tdesc.cc
@@ -24,7 +24,7 @@
#include "arch/aarch64.h"
#include "linux-aarch32-low.h"
#include <inttypes.h>
-#include <unordered_map>
+#include "gdbsupport/unordered_map.h"
/* Create the aarch64 target description. */
@@ -35,7 +35,7 @@ aarch64_linux_read_description (const aarch64_features &features)
this function as the in-process-agent calls this function from a
constructor function, when globals might not yet have been
initialised. */
- static std::unordered_map<aarch64_features, target_desc *> tdesc_aarch64_map;
+ static gdb::unordered_map<aarch64_features, target_desc *> tdesc_aarch64_map;
if (features.vq > AARCH64_MAX_SVE_VQ)
error (_("VQ is %" PRIu64 ", maximum supported value is %d"), features.vq,