diff options
author | Matt Kopec <Matt.Kopec@intel.com> | 2013-05-31 22:00:07 +0000 |
---|---|---|
committer | Matt Kopec <Matt.Kopec@intel.com> | 2013-05-31 22:00:07 +0000 |
commit | c350e13fd3351613345141bee7d8b2543df54636 (patch) | |
tree | 9fac0ad4b041e4e8dcfce850c9b50cd2ed4468d2 /include | |
parent | e6acc70303c634b71fdfe0133f6aa6be4476403b (diff) | |
download | lldb-c350e13fd3351613345141bee7d8b2543df54636.tar.gz |
Add ability to attach/detach to multi-threaded inferiors on Linux.
All running threads will be detected and stopped on attach and all threads get resumed on detach.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@183049 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/lldb/Host/Host.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/lldb/Host/Host.h b/include/lldb/Host/Host.h index 90fbb0a0c..1fcb0daeb 100644 --- a/include/lldb/Host/Host.h +++ b/include/lldb/Host/Host.h @@ -13,6 +13,7 @@ #include <stdarg.h> +#include <map> #include <string> #include "lldb/lldb-private.h" @@ -414,7 +415,12 @@ public: static uint32_t FindProcesses (const ProcessInstanceInfoMatch &match_info, ProcessInstanceInfoList &proc_infos); - + + typedef std::map<lldb::pid_t, bool> TidMap; + typedef std::pair<lldb::pid_t, bool> TidPair; + static bool + FindProcessThreads (const lldb::pid_t pid, TidMap &tids_to_attach); + static bool GetProcessInfo (lldb::pid_t pid, ProcessInstanceInfo &proc_info); |