]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Use gdb set and map in remote.c
authorTom Tromey <tom@tromey.com>
Tue, 25 Feb 2025 15:01:55 +0000 (08:01 -0700)
committerTom Tromey <tom@tromey.com>
Tue, 11 Mar 2025 14:40:06 +0000 (08:40 -0600)
This changes remote.c to use gdb::unordered_set and
gdb::unordered_map.

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

index 173f4c9407519de2e002836be8004e4697c8e878..66c58c884d33caa7acc622ed309fe51ee38e1501 100644 (file)
@@ -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;
 };