|
LLDB mainline
|
A "jstopinfo" or "jThreadsInfo" reply, indexed by thread ID. More...
#include <ProcessGDBRemote.h>
Public Member Functions | |
| ThreadInfos (StructuredData::ObjectSP json_sp) | |
| Index json_sp, which must not be null, by thread ID. | |
| StructuredData::Array * | GetArray () const |
| The reply as an array, or null if it is not one. | |
| StructuredData::Dictionary * | FindThread (lldb::tid_t tid) const |
| The dictionary of thread tid, or null if the reply has none. | |
Private Attributes | |
| StructuredData::ObjectSP | m_json_sp |
| std::unordered_map< lldb::tid_t, StructuredData::Dictionary * > | m_thread_dicts |
| Each thread's dictionary in m_json_sp, by thread ID. | |
A "jstopinfo" or "jThreadsInfo" reply, indexed by thread ID.
Definition at line 311 of file ProcessGDBRemote.h.
|
explicit |
Index json_sp, which must not be null, by thread ID.
The index is empty if the reply is not an array of thread dictionaries.
Definition at line 1850 of file ProcessGDBRemote.cpp.
References lldb_private::StructuredData::Array::GetItemAtIndex(), lldb_private::StructuredData::Array::GetSize(), lldb_private::StructuredData::Dictionary::GetValueForKeyAsInteger(), LLDB_INVALID_THREAD_ID, m_json_sp, and m_thread_dicts.
| StructuredData::Dictionary * ProcessGDBRemote::ThreadInfos::FindThread | ( | lldb::tid_t | tid | ) | const |
The dictionary of thread tid, or null if the reply has none.
Definition at line 1868 of file ProcessGDBRemote.cpp.
References m_thread_dicts.
|
inline |
The reply as an array, or null if it is not one.
Definition at line 318 of file ProcessGDBRemote.h.
References m_json_sp.
|
private |
Definition at line 324 of file ProcessGDBRemote.h.
Referenced by GetArray(), and ThreadInfos().
|
private |
Each thread's dictionary in m_json_sp, by thread ID.
Definition at line 327 of file ProcessGDBRemote.h.
Referenced by FindThread(), and ThreadInfos().