LLDB mainline
lldb_private::process_gdb_remote::ProcessGDBRemote::ThreadInfos Class Reference

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.

Detailed Description

A "jstopinfo" or "jThreadsInfo" reply, indexed by thread ID.

Definition at line 311 of file ProcessGDBRemote.h.

Constructor & Destructor Documentation

◆ ThreadInfos()

ProcessGDBRemote::ThreadInfos::ThreadInfos ( StructuredData::ObjectSP json_sp)
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.

Member Function Documentation

◆ FindThread()

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.

◆ GetArray()

StructuredData::Array * lldb_private::process_gdb_remote::ProcessGDBRemote::ThreadInfos::GetArray ( ) const
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.

Member Data Documentation

◆ m_json_sp

StructuredData::ObjectSP lldb_private::process_gdb_remote::ProcessGDBRemote::ThreadInfos::m_json_sp
private

Definition at line 324 of file ProcessGDBRemote.h.

Referenced by GetArray(), and ThreadInfos().

◆ m_thread_dicts

std::unordered_map<lldb::tid_t, StructuredData::Dictionary *> lldb_private::process_gdb_remote::ProcessGDBRemote::ThreadInfos::m_thread_dicts
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().


The documentation for this class was generated from the following files: