#include "ScriptedThread.h"
#include "Plugins/Process/Utility/RegisterContextThreadMemory.h"
#include "Plugins/Process/Utility/StopInfoMachException.h"
#include "lldb/Target/OperatingSystem.h"
#include "lldb/Target/Process.h"
#include "lldb/Target/RegisterContext.h"
#include "lldb/Target/StopInfo.h"
#include "lldb/Target/Unwind.h"
#include "lldb/Utility/DataBufferHeap.h"
#include "lldb/Utility/LLDBLog.h"
#include <memory>
#include <optional>
usingnamespacelldb;
usingnamespacelldb_private;
void ScriptedThread::CheckInterpreterAndScriptObject() const { … }
llvm::Expected<std::shared_ptr<ScriptedThread>>
ScriptedThread::Create(ScriptedProcess &process,
StructuredData::Generic *script_object) { … }
ScriptedThread::ScriptedThread(ScriptedProcess &process,
ScriptedThreadInterfaceSP interface_sp,
lldb::tid_t tid,
StructuredData::GenericSP script_object_sp)
: … { … }
ScriptedThread::~ScriptedThread() { … }
const char *ScriptedThread::GetName() { … }
const char *ScriptedThread::GetQueueName() { … }
void ScriptedThread::WillResume(StateType resume_state) { … }
void ScriptedThread::ClearStackFrames() { … }
RegisterContextSP ScriptedThread::GetRegisterContext() { … }
RegisterContextSP
ScriptedThread::CreateRegisterContextForFrame(StackFrame *frame) { … }
bool ScriptedThread::LoadArtificialStackFrames() { … }
bool ScriptedThread::CalculateStopInfo() { … }
void ScriptedThread::RefreshStateAfterStop() { … }
lldb::ScriptedThreadInterfaceSP ScriptedThread::GetInterface() const { … }
std::shared_ptr<DynamicRegisterInfo> ScriptedThread::GetDynamicRegisterInfo() { … }
StructuredData::ObjectSP ScriptedThread::FetchThreadExtendedInfo() { … }