96 llvm::Expected<StoppedExecutionContext> exe_ctx =
103 if (exe_ctx->HasThreadScope()) {
104 queue_sp = exe_ctx->GetThreadPtr()->GetQueue();
115 return this->
operator bool();
117SBThread::operator
bool()
const {
122 llvm::Expected<StoppedExecutionContext> exe_ctx =
129 return m_opaque_sp->GetThreadSP().get() !=
nullptr;
142 llvm::Expected<StoppedExecutionContext> exe_ctx =
149 if (exe_ctx->HasThreadScope())
150 return exe_ctx->GetThreadPtr()->GetStopReason();
158 llvm::Expected<StoppedExecutionContext> exe_ctx =
161 if (exe_ctx->HasThreadScope()) {
162 StopInfoSP stop_info_sp = exe_ctx->GetThreadPtr()->GetStopInfo();
164 return stop_info_sp->GetStopReasonDataCount();
176 llvm::Expected<StoppedExecutionContext> exe_ctx =
179 if (exe_ctx->HasThreadScope()) {
180 Thread *thread = exe_ctx->GetThreadPtr();
181 StopInfoSP stop_info_sp = thread->GetStopInfo();
183 return stop_info_sp->GetStopReasonDataAtIndex(idx);
197 llvm::Expected<StoppedExecutionContext> exe_ctx =
204 if (!exe_ctx->HasThreadScope())
207 StopInfoSP stop_info = exe_ctx->GetThreadPtr()->GetStopInfo();
223 llvm::Expected<StoppedExecutionContext> exe_ctx =
230 if (!exe_ctx->HasThreadScope())
233 ProcessSP process_sp = exe_ctx->GetProcessSP();
235 StopInfoSP stop_info = exe_ctx->GetThreadPtr()->GetStopInfo();
240 threads = process_sp->GetInstrumentationRuntime(type)
241 ->GetBacktracesFromExtendedStopInfo(info);
251 llvm::Expected<StoppedExecutionContext> exe_ctx =
258 if (!exe_ctx->HasThreadScope())
262 const std::string stop_desc = exe_ctx->GetThreadPtr()->GetStopDescription();
274 llvm::Expected<StoppedExecutionContext> exe_ctx =
281 if (!exe_ctx->HasThreadScope())
284 std::string thread_stop_desc = exe_ctx->GetThreadPtr()->GetStopDescription();
285 if (thread_stop_desc.empty())
289 return ::snprintf(dst_or_null, dst_len,
"%s", thread_stop_desc.c_str()) + 1;
293 return thread_stop_desc.size() + 1;
299 llvm::Expected<StoppedExecutionContext> exe_ctx =
306 if (!exe_ctx->HasThreadScope())
308 StopInfoSP stop_info_sp = exe_ctx->GetThreadPtr()->GetStopInfo();
318 if (
auto *returned = std::get_if<ReturnedValue>(&return_value))
319 return SBValue(returned->valobj_sp);
327 if (
auto *thrown = std::get_if<ThrownError>(&return_value))
328 return SBValue(thrown->valobj_sp);
339 llvm::Expected<StoppedExecutionContext> exe_ctx =
348 return thread_sp->GetID();
355 llvm::Expected<StoppedExecutionContext> exe_ctx =
364 return thread_sp->GetIndexID();
371 llvm::Expected<StoppedExecutionContext> exe_ctx =
378 if (!exe_ctx->HasThreadScope())
382 .
Intern(exe_ctx->GetThreadPtr()->GetName());
388 llvm::Expected<StoppedExecutionContext> exe_ctx =
395 if (!exe_ctx->HasThreadScope())
399 .
Intern(exe_ctx->GetThreadPtr()->GetQueueName());
406 llvm::Expected<StoppedExecutionContext> exe_ctx =
413 if (exe_ctx->HasThreadScope()) {
414 id = exe_ctx->GetThreadPtr()->GetQueueID();
423 bool success =
false;
424 llvm::Expected<StoppedExecutionContext> exe_ctx =
427 if (exe_ctx->HasThreadScope()) {
428 Thread *thread = exe_ctx->GetThreadPtr();
432 info_root_sp->GetObjectForDotSeparatedPath(path);
435 strm.
ref() << node->GetAsString()->GetValue();
439 strm.Printf(
"0x%" PRIx64, node->GetUnsignedIntegerValue());
443 strm.Printf(
"0x%f", node->GetAsFloat()->GetValue());
447 if (node->GetAsBoolean()->GetValue())
450 strm.Printf(
"false");
476 if (new_plan !=
nullptr) {
487 std::unique_lock<TargetAPIMutex> guard(api_mutex, std::adopt_lock);
503 llvm::Expected<StoppedExecutionContext> exe_ctx =
510 if (!exe_ctx->HasThreadScope()) {
515 Thread *thread = exe_ctx->GetThreadPtr();
516 bool abort_other_plans =
false;
519 error.SetErrorString(
"No frame to step over");
525 frame_sp->HasDebugInformation() || frame_sp->IsSynthetic()
529 llvm::Expected<lldb::ThreadPlanSP> frame_plan_result =
530 frame_sp->GetThreadPlanForStepType(step_type);
531 if (
auto llvm_err = frame_plan_result.takeError()) {
532 error.SetErrorStringWithFormat(
"scripted frame provider got an error "
533 "while constructing step plan: \"%s\"",
534 llvm::toString(std::move(llvm_err)).c_str());
537 new_plan_sp = *frame_plan_result;
540 thread->QueueThreadPlan(new_plan_sp,
false);
545 SymbolContext sc(frame_sp->GetSymbolContext(eSymbolContextEverything));
546 new_plan_sp = thread->QueueThreadPlanForStepOverRange(
547 abort_other_plans, sc.
line_entry, sc, stop_other_threads,
548 new_plan_status, avoid_no_debug);
550 new_plan_sp = thread->QueueThreadPlanForStepSingleInstruction(
551 true, abort_other_plans, stop_other_threads, new_plan_status);
560 StepInto(
nullptr, stop_other_threads);
575 llvm::Expected<StoppedExecutionContext> exe_ctx =
582 if (!exe_ctx->HasThreadScope()) {
587 bool abort_other_plans =
false;
589 Thread *thread = exe_ctx->GetThreadPtr();
595 if (frame_sp && (frame_sp->HasDebugInformation() || frame_sp->IsSynthetic()))
602 llvm::Expected<lldb::ThreadPlanSP> frame_plan_result =
603 frame_sp->GetThreadPlanForStepType(step_type);
604 if (
auto llvm_err = frame_plan_result.takeError()) {
605 error.SetErrorStringWithFormat(
606 "scripted frame provider got an error "
607 "while constructing step plan: \"%s\"",
608 llvm::toString(std::move(llvm_err)).c_str());
611 new_plan_sp = *frame_plan_result;
615 thread->QueueThreadPlan(new_plan_sp,
false);
618 SymbolContext sc(frame_sp->GetSymbolContext(eSymbolContextEverything));
631 const LazyBool step_out_avoids_code_without_debug_info =
633 const LazyBool step_in_avoids_code_without_debug_info =
635 new_plan_sp = thread->QueueThreadPlanForStepInRange(
636 abort_other_plans, range, sc, target_name, stop_other_threads,
637 new_plan_status, step_in_avoids_code_without_debug_info,
638 step_out_avoids_code_without_debug_info);
640 new_plan_sp = thread->QueueThreadPlanForStepSingleInstruction(
641 false, abort_other_plans, stop_other_threads, new_plan_status);
661 llvm::Expected<StoppedExecutionContext> exe_ctx =
668 if (!exe_ctx->HasThreadScope()) {
673 bool abort_other_plans =
false;
674 bool stop_other_threads =
false;
678 Thread *thread = exe_ctx->GetThreadPtr();
681 llvm::Expected<lldb::ThreadPlanSP> frame_plan_result =
683 if (
auto llvm_err = frame_plan_result.takeError()) {
684 error.SetErrorStringWithFormat(
685 "scripted frame provider got an error "
686 "while constructing step plan: \"%s\"",
687 llvm::toString(std::move(llvm_err)).c_str());
690 new_plan_sp = *frame_plan_result;
697 thread->QueueThreadPlan(new_plan_sp,
false);
700 new_plan_sp = thread->QueueThreadPlanForStepOut(
701 abort_other_plans,
nullptr,
false, stop_other_threads,
eVoteYes,
721 llvm::Expected<StoppedExecutionContext> exe_ctx =
735 if (!exe_ctx->HasThreadScope()) {
740 bool abort_other_plans =
false;
741 bool stop_other_threads =
false;
742 Thread *thread = exe_ctx->GetThreadPtr();
749 ThreadPlanSP new_plan_sp(thread->QueueThreadPlanForStepOut(
750 abort_other_plans,
nullptr,
false, stop_other_threads,
eVoteYes,
769 llvm::Expected<StoppedExecutionContext> exe_ctx =
776 if (!exe_ctx->HasThreadScope()) {
781 Thread *thread = exe_ctx->GetThreadPtr();
788 llvm::Expected<lldb::ThreadPlanSP> frame_plan_result =
789 frame_sp->GetThreadPlanForStepType(step_type);
790 if (
auto llvm_err = frame_plan_result.takeError()) {
791 error.SetErrorStringWithFormat(
792 "scripted frame provider got an error "
793 "while constructing step plan: \"%s\"",
794 llvm::toString(std::move(llvm_err)).c_str());
797 new_plan_sp = *frame_plan_result;
802 new_plan_sp = thread->QueueThreadPlanForStepSingleInstruction(
803 step_over,
false,
true, new_plan_status);
821 llvm::Expected<StoppedExecutionContext> exe_ctx =
828 if (!exe_ctx->HasThreadScope()) {
833 bool abort_other_plans =
false;
834 bool stop_other_threads =
true;
838 Thread *thread = exe_ctx->GetThreadPtr();
841 ThreadPlanSP new_plan_sp(thread->QueueThreadPlanForRunToAddress(
842 abort_other_plans, target_addr, stop_other_threads, new_plan_status));
856 llvm::Expected<StoppedExecutionContext> exe_ctx =
863 if (exe_ctx->HasThreadScope()) {
864 Thread *thread = exe_ctx->GetThreadPtr();
878 frame_sp = thread->GetStackFrameAtIndex(0);
888 frame_sc = frame_sp->GetSymbolContext(
889 eSymbolContextCompUnit | eSymbolContextFunction |
890 eSymbolContextLineEntry | eSymbolContextSymbol);
894 "frame %u doesn't have debug information", frame_sp->GetFrameIndex());
901 step_file_spec = sb_file_spec.
ref();
907 "invalid file argument or no file for frame");
912 const bool abort_other_plans =
false;
913 const bool stop_other_threads =
false;
914 llvm::Expected<std::vector<addr_t>> step_over_until_addrs =
916 if (!step_over_until_addrs)
920 ThreadPlanSP new_plan_sp = thread->QueueThreadPlanForStepUntil(
921 abort_other_plans, *step_over_until_addrs, stop_other_threads,
922 frame_sp->GetFrameIndex(), new_plan_status);
925 sb_error =
ResumeNewPlan(std::move(*exe_ctx), new_plan_sp.get());
941 bool resume_immediately) {
951 bool resume_immediately) {
956 llvm::Expected<StoppedExecutionContext> exe_ctx =
961 if (!exe_ctx->HasThreadScope()) {
966 Thread *thread = exe_ctx->GetThreadPtr();
972 args_dict_sp = std::static_pointer_cast<StructuredData::Dictionary>(obj_sp);
975 ThreadPlanSP new_plan_sp = thread->QueueThreadPlanForStepScripted(
976 false, scripted_metadata,
false, new_plan_status);
978 if (new_plan_status.
Fail()) {
983 if (!resume_immediately)
999 llvm::Expected<StoppedExecutionContext> exe_ctx =
1004 if (!exe_ctx->HasThreadScope()) {
1009 Thread *thread = exe_ctx->GetThreadPtr();
1011 Status err = thread->JumpToLine(file_spec.
ref(), line,
true);
1021 llvm::Expected<StoppedExecutionContext> exe_ctx =
1026 if (exe_ctx->HasThreadScope()) {
1027 Thread *thread = exe_ctx->GetThreadPtr();
1040 llvm::Expected<StoppedExecutionContext> exe_ctx =
1045 if (exe_ctx->HasThreadScope()) {
1046 Thread *thread = exe_ctx->GetThreadPtr();
1047 sb_error.
SetError(thread->UnwindInnermostExpression());
1049 thread->SetSelectedFrameByIndex(0,
false);
1065 llvm::Expected<StoppedExecutionContext> exe_ctx =
1072 bool result =
false;
1073 if (exe_ctx->HasThreadScope()) {
1091 llvm::Expected<StoppedExecutionContext> exe_ctx =
1099 bool result =
false;
1100 if (exe_ctx->HasThreadScope()) {
1101 const bool override_suspend =
true;
1102 exe_ctx->GetThreadPtr()->SetResumeState(
eStateRunning, override_suspend);
1112 llvm::Expected<StoppedExecutionContext> exe_ctx =
1119 if (exe_ctx->HasThreadScope())
1127 llvm::Expected<StoppedExecutionContext> exe_ctx =
1134 if (exe_ctx->HasThreadScope())
1143 llvm::Expected<StoppedExecutionContext> exe_ctx =
1150 if (exe_ctx->HasThreadScope()) {
1153 sb_process.
SetSP(exe_ctx->GetProcessSP());
1162 llvm::Expected<StoppedExecutionContext> exe_ctx =
1169 if (exe_ctx->HasThreadScope())
1170 return exe_ctx->GetThreadPtr()->GetStackFrameCount();
1179 llvm::Expected<StoppedExecutionContext> exe_ctx =
1186 if (exe_ctx->HasThreadScope()) {
1187 StackFrameSP frame_sp = exe_ctx->GetThreadPtr()->GetStackFrameAtIndex(idx);
1198 llvm::Expected<StoppedExecutionContext> exe_ctx =
1205 if (exe_ctx->HasThreadScope()) {
1207 exe_ctx->GetThreadPtr()->GetStackFrameList();
1211 return sb_frame_list;
1218 llvm::Expected<StoppedExecutionContext> exe_ctx =
1225 if (exe_ctx->HasThreadScope()) {
1239 llvm::Expected<StoppedExecutionContext> exe_ctx =
1246 if (exe_ctx->HasThreadScope()) {
1247 Thread *thread = exe_ctx->GetThreadPtr();
1248 frame_sp = thread->GetStackFrameAtIndex(idx);
1250 thread->SetSelectedFrame(frame_sp.get());
1295 llvm::Expected<StoppedExecutionContext> exe_ctx =
1302 if (exe_ctx->HasThreadScope()) {
1303 exe_ctx->GetThreadPtr()->GetStatus(strm, 0, 1, 1,
true,
1322 llvm::Expected<StoppedExecutionContext> exe_ctx =
1329 if (exe_ctx->HasThreadScope()) {
1330 exe_ctx->GetThreadPtr()->DumpUsingSettingsFormat(
1348 llvm::Expected<StoppedExecutionContext> exe_ctx =
1355 if (exe_ctx->HasThreadScope()) {
1356 if (exe_ctx->GetThreadPtr()->DumpUsingFormat(
1363 "It was not possible to generate a thread description with the given "
1364 "format string '%s'",
1372 llvm::Expected<StoppedExecutionContext> exe_ctx =
1376 if (exe_ctx->HasThreadScope()) {
1377 ThreadSP real_thread(exe_ctx->GetThreadSP());
1380 Process *process = exe_ctx->GetProcessPtr();
1386 if (new_thread_sp) {
1390 sb_origin_thread.
SetThread(new_thread_sp);
1400 return sb_origin_thread;
1406 llvm::Expected<StoppedExecutionContext> exe_ctx =
1415 return thread_sp->GetExtendedBacktraceOriginatingIndexID();
1422 llvm::Expected<StoppedExecutionContext> exe_ctx =
1433 return SBValue(thread_sp->GetCurrentException());
1439 llvm::Expected<StoppedExecutionContext> exe_ctx =
1450 return SBThread(thread_sp->GetCurrentExceptionBacktrace());
1456 llvm::Expected<StoppedExecutionContext> exe_ctx =
1465 return thread_sp->SafeToCallFunctions();
1482 llvm::Expected<StoppedExecutionContext> exe_ctx =
1492 return thread_sp->GetSiginfoValue();
static llvm::raw_ostream & error(Stream &strm)
#define LLDB_INSTRUMENT()
#define LLDB_INSTRUMENT_VA(...)
#define LLDB_LOG_ERROR(log, error,...)
static Status ResumeNewPlan(StoppedExecutionContext exe_ctx, ThreadPlan *new_plan)
static ThreadPlanReturnValue GetStopReturnValueImpl(const lldb::ExecutionContextRefSP &exe_ctx_ref_sp)
Get what the function the thread stepped out of returned or threw.
void SetError(uint32_t err, lldb::ErrorType type)
lldb_private::Event * get() const
const lldb_private::FileSpec & ref() const
Represents a list of SBFrame objects.
void SetFrameList(const lldb::StackFrameListSP &frame_list_sp)
void SetFrameSP(const lldb::StackFrameSP &lldb_object_sp)
lldb::SBThread GetThread() const
lldb::StackFrameSP GetFrameSP() const
void SetSP(const lldb::ProcessSP &process_sp)
void SetQueue(const lldb::QueueSP &queue_sp)
lldb_private::Stream & ref()
StructuredDataImplUP m_impl_up
static const char * GetBroadcasterClassName()
void StepInto(lldb::RunMode stop_other_threads=lldb::eOnlyDuringStepping)
bool Suspend()
LLDB currently supports process centric debugging which means when any thread in a process stops,...
const char * GetName() const
bool GetStopDescription(lldb::SBStream &stream) const
Gets a human-readable description of why the thread stopped.
const lldb::SBThread & operator=(const lldb::SBThread &rhs)
lldb::SBFrame SetSelectedFrame(uint32_t frame_idx)
SBError UnwindInnermostExpression()
friend class SBThreadCollection
const char * GetQueueName() const
uint32_t GetIndexID() const
bool GetDescription(lldb::SBStream &description) const
static bool EventIsThreadEvent(const SBEvent &event)
lldb_private::Thread * operator->()
lldb_private::Thread * get()
void StepOutOfFrame(SBFrame &frame)
bool GetStatus(lldb::SBStream &status) const
static SBFrame GetStackFrameFromEvent(const SBEvent &event)
lldb::queue_id_t GetQueueID() const
lldb::SBFrameList GetFrames() const
bool GetInfoItemByPathAsString(const char *path, SBStream &strm)
lldb::SBFrame GetSelectedFrame()
bool operator!=(const lldb::SBThread &rhs) const
SBError StepUsingScriptedThreadPlan(const char *script_class_name)
lldb::tid_t GetThreadID() const
lldb::SBFrame GetFrameAtIndex(uint32_t idx)
uint32_t GetExtendedBacktraceOriginatingIndexID()
lldb::SBQueue GetQueue() const
bool SafeToCallFunctions()
lldb::SBProcess GetProcess()
size_t GetStopReasonDataCount()
Get the number of words associated with the stop reason.
void StepInstruction(bool step_over)
SBThread GetCurrentExceptionBacktrace()
static SBThread GetThreadFromEvent(const SBEvent &event)
bool GetStopReasonExtendedInfoAsJSON(lldb::SBStream &stream)
lldb::StopReason GetStopReason()
SBValue GetStopReturnValue()
Get the value the function returned, if the thread stopped because it stepped out of a function.
void StepOver(lldb::RunMode stop_other_threads=lldb::eOnlyDuringStepping)
SBError JumpToLine(lldb::SBFileSpec &file_spec, uint32_t line)
SBError GetDescriptionWithFormat(const SBFormat &format, SBStream &output)
Similar to GetDescription() but the format of the description can be configured via the format parame...
SBThreadCollection GetStopReasonExtendedBacktraces(InstrumentationRuntimeType type)
SBValue GetCurrentException()
void SetThread(const lldb::ThreadSP &lldb_object_sp)
lldb::ThreadSP GetSP() const
SBThread GetExtendedBacktraceThread(const char *type)
lldb::ExecutionContextRefSP m_opaque_sp
void RunToAddress(lldb::addr_t addr)
SBValue GetStopErrorValue()
Get the error the function threw, if the thread stopped because it stepped out of a function that thr...
uint64_t GetStopReasonDataAtIndex(uint32_t idx)
Get information associated with a stop reason.
SBError ReturnFromFrame(SBFrame &frame, SBValue &return_value)
bool operator==(const lldb::SBThread &rhs) const
SBError StepOverUntil(lldb::SBFrame &frame, lldb::SBFileSpec &file_spec, uint32_t line)
lldb::ValueObjectSP GetSP() const
Same as the protected version of GetSP that takes a locker, except that we make the locker locally in...
A section + offset based address range class.
A section + offset based address class.
A uniqued constant string class.
Execution context objects refer to objects in the execution of the program that is being debugged.
Process * GetProcessPtr() const
Returns a pointer to the process object.
Thread * GetThreadPtr() const
Returns a pointer to the thread object.
A plug-in interface definition class for debugging a process.
ThreadList & GetThreadList()
Status Resume()
Resumes all of a process's threads as configured using the Thread run control functions.
virtual SystemRuntime * GetSystemRuntime()
Get the system runtime plug-in for this process.
ThreadList & GetExtendedThreadList()
Status ResumeSynchronous(Stream *stream)
Resume a process, and wait for it to stop.
Target & GetTarget()
Get the target object pointer for this module.
static Status FromErrorStringWithFormat(const char *format,...) __attribute__((format(printf
static Status FromErrorString(const char *str)
bool Fail() const
Test for error condition.
const char * AsCString(const char *default_error_str="unknown error") const
Get the error string associated with the current error.
static Status FromError(llvm::Error error)
Avoid using this in new code. Migrate APIs to llvm::Expected instead.
bool Success() const
Test for success condition.
static ThreadPlanReturnValue GetReturnValue(lldb::StopInfoSP &stop_info_sp)
A stream class that can stream formatted output to a file.
size_t PutCString(llvm::StringRef cstr)
Output a C string to the stream.
const char * Intern(llvm::StringRef str) const
const char * InternNonEmpty(llvm::StringRef str) const
Like Intern, but an empty string yields nullptr.
static StringPoolRef GetSystemPool()
The system pool. Only valid between Initialize and Terminate.
std::shared_ptr< Dictionary > DictionarySP
std::shared_ptr< Object > ObjectSP
Defines a symbol context baton that can be handed other debug core functions.
llvm::Error GetAddressRangeFromHereToEndLine(uint32_t end_line, AddressRange &range)
CompileUnit * comp_unit
The CompileUnit for a given query.
LineEntry line_entry
The LineEntry for a given query.
A plug-in interface definition class for system runtimes.
virtual lldb::ThreadSP GetExtendedBacktraceThread(lldb::ThreadSP thread, ConstString type)
Return a Thread which shows the origin of this thread's creation.
A Lockable handle over a Target's API mutex, returned by Target::GetAPIMutex() and backing the public...
Debugger & GetDebugger() const
void AddThread(const lldb::ThreadSP &thread_sp)
bool SetSelectedThreadByID(lldb::tid_t tid, bool notify=false)
void SetOkayToDiscard(bool value)
bool SetIsControllingPlan(bool value)
static const ThreadEventData * GetEventDataFromEvent(const Event *event_ptr)
static lldb::ThreadSP GetThreadFromEvent(const Event *event_ptr)
static lldb::StackFrameSP GetStackFrameFromEvent(const Event *event_ptr)
static llvm::StringRef GetStaticBroadcasterClass()
#define LLDB_INVALID_QUEUE_ID
#define LLDB_INVALID_LINE_NUMBER
#define LLDB_INVALID_THREAD_ID
#define LLDB_INVALID_INDEX32
@ DoNoSelectMostRelevantFrame
@ SelectMostRelevantFrame
A class that represents a running process on the host machine.
Log * GetLog(Cat mask)
Retrieve the Log object for the channel associated with the given log enum.
bool StateIsStoppedState(lldb::StateType state, bool must_exist)
Check if a state represents a state where the process or thread is stopped.
llvm::Expected< std::vector< lldb::addr_t > > GetStepUntilAddresses(StackFrame &frame, const FileSpec &file, llvm::ArrayRef< uint32_t > lines, llvm::ArrayRef< lldb::addr_t > requested_addresses)
Returns the load addresses of the line table entries for lines in file, and of addresses,...
std::unique_ptr< T > clone(const std::unique_ptr< T > &src)
std::variant< std::monostate, ReturnedValue, ThrownError > ThreadPlanReturnValue
What a completed thread plan computed for the function it stepped out of or called: nothing,...
StringPoolRef GetDebuggerStringPool(const Target &target)
Strings interned here live as long as target's debugger.
llvm::Expected< StoppedExecutionContext > GetStoppedExecutionContext(const ExecutionContextRef *exe_ctx_ref_ptr)
std::shared_ptr< lldb_private::ThreadPlan > ThreadPlanSP
std::shared_ptr< lldb_private::Queue > QueueSP
std::shared_ptr< lldb_private::StackFrame > StackFrameSP
std::shared_ptr< lldb_private::Thread > ThreadSP
@ eStateSuspended
Process or thread is in a suspended state as far as the debugger is concerned while other processes o...
@ eStateRunning
Process or thread is running and can't be examined.
std::shared_ptr< lldb_private::Process > ProcessSP
InstrumentationRuntimeType
@ eStepTypeInto
Single step into a specified context.
@ eStepTypeTraceOver
Single step one instruction, stepping over.
@ eStepTypeTrace
Single step one instruction.
@ eStepTypeOut
Single step out a specified context.
@ eStepTypeOver
Single step over a specified context.
std::shared_ptr< lldb_private::StopInfo > StopInfoSP
StopReason
Thread stop reasons.
@ eStructuredDataTypeFloat
@ eStructuredDataTypeDictionary
@ eStructuredDataTypeInteger
@ eStructuredDataTypeNull
@ eStructuredDataTypeBoolean
@ eStructuredDataTypeString
std::shared_ptr< lldb_private::StackFrameList > StackFrameListSP
std::shared_ptr< lldb_private::ExecutionContextRef > ExecutionContextRefSP
bool IsValid() const
Check if a line entry object is valid.
AddressRange range
The section offset address range for this line entry.
const FileSpec & GetFile() const
Helper to access the file.
A wrapper class representing an execution context with non-null Target and Process pointers,...
TargetAPIMutex AllowResume()
Clears this context, unlocking the ProcessRunLock and returning the locked API lock,...