[07/19] Use gdb unordered map in inferior.h

Message ID 20250317-replace-std-stuff-v1-7-7ba4ee88e218@tromey.com
State New
Headers
Series Convert std::unordered_{set,map} to gdb implementations |

Commit Message

Tom Tromey March 18, 2025, 2:15 a.m. UTC
  This changes inferior.h to use gdb::unordered_map.
---
 gdb/inferior.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/gdb/inferior.h b/gdb/inferior.h
index 10f00a1a91442b3a98b0edcdeaa25d581c82e9c7..3d9f86c0d4a4c5fc9a4b7402eeafbe73ebb94d72 100644
--- a/gdb/inferior.h
+++ b/gdb/inferior.h
@@ -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 @@  class inferior : public refcounted_object,
 
   /* 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: