diff options
author | Tom Tromey <tom@tromey.com> | 2025-02-25 08:01:55 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2025-03-11 08:40:06 -0600 |
commit | 8c830ad96ebafc2890ed6d61e6bffb412801f696 (patch) | |
tree | 7dbaea5fd441b530bd8ccfded548a6b0ea58b188 /gdb | |
parent | d99b43c298f4235aba0889c74e1d23dd24beb9ac (diff) | |
download | binutils-8c830ad96ebafc2890ed6d61e6bffb412801f696.zip binutils-8c830ad96ebafc2890ed6d61e6bffb412801f696.tar.gz binutils-8c830ad96ebafc2890ed6d61e6bffb412801f696.tar.bz2 |
Use gdb set and map in remote.c
This changes remote.c to use gdb::unordered_set and
gdb::unordered_map.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/remote.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index 173f4c9..66c58c8 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -77,7 +77,6 @@ #include "gdbsupport/search.h" #include <algorithm> #include <iterator> -#include <unordered_map> #include "async-event.h" #include "gdbsupport/selftest.h" #include "cli/cli-style.h" @@ -700,7 +699,7 @@ public: /* data */ /* Contains the regnums of the expedited registers in the last stop reply packet. */ - std::set<int> last_seen_expedited_registers; + gdb::unordered_set<int> last_seen_expedited_registers; private: /* Asynchronous signal handle registered as event loop source for @@ -710,7 +709,7 @@ private: /* Mapping of remote protocol data for each gdbarch. Usually there is only one entry here, though we may see more with stubs that support multi-process. */ - std::unordered_map<struct gdbarch *, remote_arch_state> + gdb::unordered_map<struct gdbarch *, remote_arch_state> m_arch_states; }; |