From: Tom Tromey Date: Tue, 25 Feb 2025 15:01:55 +0000 (-0700) Subject: Use gdb set and map in remote.c X-Git-Tag: binutils-2_45~1217 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8c830ad96ebafc2890ed6d61e6bffb412801f696;p=thirdparty%2Fbinutils-gdb.git 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 --- diff --git a/gdb/remote.c b/gdb/remote.c index 173f4c94075..66c58c884d3 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -77,7 +77,6 @@ #include "gdbsupport/search.h" #include #include -#include #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 last_seen_expedited_registers; + gdb::unordered_set 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 + gdb::unordered_map m_arch_states; };