aboutsummaryrefslogtreecommitdiff
path: root/gdb/inferior.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/inferior.h')
-rw-r--r--gdb/inferior.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/inferior.h b/gdb/inferior.h
index 2bfe29a..6662a3b 100644
--- a/gdb/inferior.h
+++ b/gdb/inferior.h
@@ -63,6 +63,8 @@ struct thread_info;
#include "process-stratum-target.h"
#include "displaced-stepping.h"
+#include <unordered_map>
+
struct infcall_suspend_state;
struct infcall_control_state;
@@ -391,6 +393,10 @@ public:
/* This inferior's thread list, sorted by creation order. */
intrusive_list<thread_info> thread_list;
+ /* 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 *, hash_ptid> ptid_thread_map;
+
/* Returns a range adapter covering the inferior's threads,
including exited threads. Used like this: