diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2024-11-25 22:16:48 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2024-11-25 22:20:39 -0500 |
commit | 74f8902dddbfa60bceae086be2c34ee7f1ca3c37 (patch) | |
tree | d20a0bb37e4307b2086253f8828ab5b67e087913 /gdbserver/server.cc | |
parent | e1bb778eabc85d262e368fdd6fbcee57b02c1bba (diff) | |
download | binutils-users/simark/try-gdbserver-unordered-map.zip binutils-users/simark/try-gdbserver-unordered-map.tar.gz binutils-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/server.cc')
-rw-r--r-- | gdbserver/server.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdbserver/server.cc b/gdbserver/server.cc index 0697956..6e11b2e 100644 --- a/gdbserver/server.cc +++ b/gdbserver/server.cc @@ -35,7 +35,7 @@ #include "dll.h" #include "hostio.h" #include <vector> -#include <unordered_map> +#include "gdbsupport/unordered_map.h" #include "gdbsupport/common-inferior.h" #include "gdbsupport/job-control.h" #include "gdbsupport/environ.h" @@ -947,7 +947,7 @@ handle_general_set (char *own_buf) It's nicer if we only print the final options for each TID, and if we only print about it if the options changed compared to the options that were previously set on the thread. */ - std::unordered_map<thread_info *, gdb_thread_options> set_options; + gdb::unordered_map<thread_info *, gdb_thread_options> set_options; while (*p != '\0') { |