]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Use gdb unordered map in inferior.h
authorTom Tromey <tom@tromey.com>
Tue, 11 Mar 2025 15:37:58 +0000 (09:37 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 18 Mar 2025 11:32:03 +0000 (05:32 -0600)
This changes inferior.h to use gdb::unordered_map.

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

index 10f00a1a91442b3a98b0edcdeaa25d581c82e9c7..3d9f86c0d4a4c5fc9a4b7402eeafbe73ebb94d72 100644 (file)
@@ -63,7 +63,7 @@ struct thread_info;
 #include "process-stratum-target.h"
 #include "displaced-stepping.h"
 
-#include <unordered_map>
+#include "gdbsupport/unordered_map.h"
 
 struct infcall_suspend_state;
 struct infcall_control_state;
@@ -459,7 +459,7 @@ public:
 
   /* A map of ptid_t to thread_info*, for average O(1) ptid_t lookup.
      Exited threads do not appear in the map.  */
-  std::unordered_map<ptid_t, thread_info *> ptid_thread_map;
+  gdb::unordered_map<ptid_t, thread_info *> ptid_thread_map;
 
   /* Returns a range adapter covering the inferior's threads,
      including exited threads.  Used like this: