LLDB mainline
|
#include <Target.h>
Public Member Functions | |
EvaluateExpressionOptions ()=default | |
ExecutionPolicy | GetExecutionPolicy () const |
void | SetExecutionPolicy (ExecutionPolicy policy=eExecutionPolicyAlways) |
SourceLanguage | GetLanguage () const |
void | SetLanguage (lldb::LanguageType language_type) |
void | SetLanguage (uint16_t name, uint32_t version) |
Set the language using a pair of language code and version as defined by the DWARF 6 specification. | |
bool | DoesCoerceToId () const |
const char * | GetPrefix () const |
void | SetPrefix (const char *prefix) |
void | SetCoerceToId (bool coerce=true) |
bool | DoesUnwindOnError () const |
void | SetUnwindOnError (bool unwind=false) |
bool | DoesIgnoreBreakpoints () const |
void | SetIgnoreBreakpoints (bool ignore=false) |
bool | DoesKeepInMemory () const |
void | SetKeepInMemory (bool keep=true) |
lldb::DynamicValueType | GetUseDynamic () const |
void | SetUseDynamic (lldb::DynamicValueType dynamic=lldb::eDynamicCanRunTarget) |
const Timeout< std::micro > & | GetTimeout () const |
void | SetTimeout (const Timeout< std::micro > &timeout) |
const Timeout< std::micro > & | GetOneThreadTimeout () const |
void | SetOneThreadTimeout (const Timeout< std::micro > &timeout) |
bool | GetTryAllThreads () const |
void | SetTryAllThreads (bool try_others=true) |
bool | GetStopOthers () const |
void | SetStopOthers (bool stop_others=true) |
bool | GetDebug () const |
void | SetDebug (bool b) |
bool | GetGenerateDebugInfo () const |
void | SetGenerateDebugInfo (bool b) |
bool | GetColorizeErrors () const |
void | SetColorizeErrors (bool b) |
bool | GetTrapExceptions () const |
void | SetTrapExceptions (bool b) |
bool | GetREPLEnabled () const |
void | SetREPLEnabled (bool b) |
void | SetCancelCallback (lldb::ExpressionCancelCallback callback, void *baton) |
bool | InvokeCancelCallback (lldb::ExpressionEvaluationPhase phase) const |
void | SetPoundLine (const char *path, uint32_t line) const |
const char * | GetPoundLineFilePath () const |
uint32_t | GetPoundLineLine () const |
void | SetSuppressPersistentResult (bool b) |
bool | GetSuppressPersistentResult () const |
void | SetAutoApplyFixIts (bool b) |
bool | GetAutoApplyFixIts () const |
void | SetRetriesWithFixIts (uint64_t number_of_retries) |
uint64_t | GetRetriesWithFixIts () const |
bool | IsForUtilityExpr () const |
void | SetIsForUtilityExpr (bool b) |
Static Public Attributes | |
static constexpr std::chrono::milliseconds | default_timeout {500} |
static constexpr ExecutionPolicy | default_execution_policy |
|
default |
|
inline |
Definition at line 328 of file Target.h.
References m_coerce_to_id.
Referenced by lldb_private::UserExpression::Evaluate().
|
inline |
Definition at line 347 of file Target.h.
References m_ignore_breakpoints.
Referenced by lldb_private::LLVMUserExpression::DoExecute(), HandleStoppedEvent(), and lldb_private::Process::RunThreadPlan().
|
inline |
Definition at line 353 of file Target.h.
References m_keep_in_memory.
|
inline |
Definition at line 343 of file Target.h.
References m_unwind_on_error.
Referenced by lldb_private::LLVMUserExpression::DoExecute(), HandleStoppedEvent(), and lldb_private::Process::RunThreadPlan().
|
inline |
Definition at line 445 of file Target.h.
References m_auto_apply_fixits.
Referenced by lldb_private::UserExpression::Evaluate().
|
inline |
Definition at line 396 of file Target.h.
References m_ansi_color_errors.
|
inline |
Definition at line 384 of file Target.h.
References m_debug.
Referenced by lldb_private::Process::RunThreadPlan().
|
inline |
Definition at line 309 of file Target.h.
References m_execution_policy.
Referenced by lldb_private::ClangUserExpression::Complete(), lldb_private::ClangUserExpression::CreateSourceCode(), lldb_private::UserExpression::Evaluate(), lldb_private::ClangUserExpression::GetWrapKind(), lldb_private::ClangUserExpression::Parse(), and lldb_private::ClangUserExpression::TryParse().
|
inline |
Definition at line 392 of file Target.h.
References m_generate_debug_info.
Referenced by lldb_private::UserExpression::Evaluate().
|
inline |
Definition at line 315 of file Target.h.
References m_language.
Referenced by lldb_private::UserExpression::Evaluate().
|
inline |
Definition at line 368 of file Target.h.
References m_one_thread_timeout.
Referenced by GetOneThreadExpressionTimeout(), and lldb_private::Process::RunThreadPlan().
|
inline |
Definition at line 431 of file Target.h.
References m_pound_line_file.
|
inline |
Definition at line 435 of file Target.h.
References m_pound_line_line.
|
inline |
Definition at line 330 of file Target.h.
References m_prefix.
Referenced by lldb_private::UserExpression::Evaluate().
|
inline |
|
inline |
Definition at line 451 of file Target.h.
References m_retries_with_fixits.
Referenced by lldb_private::UserExpression::Evaluate().
|
inline |
Definition at line 380 of file Target.h.
References m_stop_others.
Referenced by GetExpressionTimeout(), and lldb_private::Process::RunThreadPlan().
|
inline |
Definition at line 439 of file Target.h.
References m_suppress_persistent_result.
Referenced by lldb_private::UserExpression::Execute().
|
inline |
Definition at line 364 of file Target.h.
References m_timeout.
Referenced by lldb_private::LLVMUserExpression::DoExecute(), GetExpressionTimeout(), GetOneThreadExpressionTimeout(), and lldb_private::Process::RunThreadPlan().
|
inline |
Definition at line 400 of file Target.h.
References m_trap_exceptions.
|
inline |
Definition at line 376 of file Target.h.
References m_try_others.
Referenced by GetExpressionTimeout(), and lldb_private::Process::RunThreadPlan().
|
inline |
Definition at line 357 of file Target.h.
References m_use_dynamic.
|
inline |
Definition at line 413 of file Target.h.
References m_cancel_callback, and m_cancel_callback_baton.
Referenced by lldb_private::UserExpression::Evaluate().
|
inline |
Definition at line 453 of file Target.h.
References m_running_utility_expression.
Referenced by lldb_private::Process::RunThreadPlan().
|
inline |
Definition at line 443 of file Target.h.
References m_auto_apply_fixits.
Referenced by lldb_private::CommandObjectExpression::CommandOptions::GetEvaluateExpressionOptions(), lldb_private::MemoryHistoryASan::GetHistoryThreads(), lldb_private::ReportRetriever::RetrieveReportData(), lldb_private::InstrumentationRuntimeTSan::RetrieveReportData(), and lldb_private::InstrumentationRuntimeUBSan::RetrieveReportData().
|
inline |
Definition at line 408 of file Target.h.
References m_cancel_callback, and m_cancel_callback_baton.
|
inline |
Definition at line 341 of file Target.h.
References m_coerce_to_id.
Referenced by lldb_private::OptionArgParser::DoToAddress(), lldb_private::CommandObjectExpression::CommandOptions::GetEvaluateExpressionOptions(), lldb_private::REPL::IOHandlerInputComplete(), and lldb_private::CommandInterpreter::PreprocessToken().
|
inline |
Definition at line 398 of file Target.h.
References m_ansi_color_errors.
Referenced by lldb_private::REPL::IOHandlerInputComplete().
|
inline |
Definition at line 386 of file Target.h.
References m_debug, and m_generate_debug_info.
Referenced by lldb_private::Process::CallVoidArgVoidPtrReturn(), lldb_private::FunctionCaller::ExecuteFunction(), lldb_private::CommandObjectExpression::CommandOptions::GetEvaluateExpressionOptions(), lldb_private::InferiorCallMmap(), and lldb_private::InferiorCallMunmap().
|
inline |
Definition at line 311 of file Target.h.
References m_execution_policy.
Referenced by PlatformPOSIX::DoLoadImage(), lldb_private::PlatformWindows::DoLoadImage(), PlatformPOSIX::EvaluateLibdlExpression(), lldb_private::PlatformWindows::EvaluateLoaderExpression(), and lldb_private::CommandObjectExpression::CommandOptions::GetEvaluateExpressionOptions().
|
inline |
Definition at line 394 of file Target.h.
References m_generate_debug_info.
Referenced by lldb_private::FunctionCaller::ExecuteFunction(), lldb_private::CommandObjectExpression::CommandOptions::GetEvaluateExpressionOptions(), and lldb_private::REPL::IOHandlerInputComplete().
|
inline |
Definition at line 349 of file Target.h.
References m_ignore_breakpoints.
Referenced by lldb_private::Process::CallVoidArgVoidPtrReturn(), lldb_private::BreakpointLocation::ConditionSaysStop(), lldb_private::CommandObjectExpression::DoExecute(), lldb_private::PlatformWindows::DoLoadImage(), PlatformPOSIX::EvaluateLibdlExpression(), lldb_private::PlatformWindows::EvaluateLoaderExpression(), lldb_private::FunctionCaller::ExecuteFunction(), lldb_private::AppleGetQueuesHandler::GetCurrentQueues(), lldb_private::CommandObjectExpression::CommandOptions::GetEvaluateExpressionOptions(), lldb_private::ItaniumABILanguageRuntime::GetExceptionObjectForThread(), lldb_private::MemoryHistoryASan::GetHistoryThreads(), lldb_private::AppleGetItemInfoHandler::GetItemInfo(), lldb_private::AppleObjCRuntime::GetObjectDescription(), lldb_private::AppleGetPendingItemsHandler::GetPendingItems(), lldb_private::AppleGetThreadItemInfoHandler::GetThreadItemInfo(), lldb_private::InferiorCallMmap(), lldb_private::InferiorCallMunmap(), lldb_private::AppleThreadPlanStepThroughObjCTrampoline::InitializeFunctionCaller(), lldb_private::StopInfoWatchpoint::PerformAction(), lldb_private::CommandInterpreter::PreprocessToken(), lldb_private::ReportRetriever::RetrieveReportData(), lldb_private::InstrumentationRuntimeTSan::RetrieveReportData(), lldb_private::InstrumentationRuntimeUBSan::RetrieveReportData(), lldb_private::AppleObjCRuntimeV2::SharedCacheClassInfoExtractor::UpdateISAToDescriptorMap(), and lldb_private::AppleObjCRuntimeV2::DynamicClassInfoExtractor::UpdateISAToDescriptorMap().
|
inline |
Definition at line 455 of file Target.h.
References m_running_utility_expression.
Referenced by lldb_private::PlatformWindows::DoLoadImage(), lldb_private::AppleGetQueuesHandler::GetCurrentQueues(), lldb_private::AppleGetItemInfoHandler::GetItemInfo(), lldb_private::AppleObjCRuntime::GetObjectDescription(), lldb_private::AppleGetPendingItemsHandler::GetPendingItems(), lldb_private::AppleGetThreadItemInfoHandler::GetThreadItemInfo(), lldb_private::AppleObjCRuntimeV2::SharedCacheClassInfoExtractor::UpdateISAToDescriptorMap(), and lldb_private::AppleObjCRuntimeV2::DynamicClassInfoExtractor::UpdateISAToDescriptorMap().
|
inline |
Definition at line 355 of file Target.h.
References m_keep_in_memory.
Referenced by lldb::SBValue::CreateValueFromExpression(), lldb_private::OptionArgParser::DoToAddress(), lldb_private::CommandObjectExpression::CommandOptions::GetEvaluateExpressionOptions(), lldb_private::REPL::IOHandlerInputComplete(), and lldb_private::CommandInterpreter::PreprocessToken().
|
inline |
Definition at line 317 of file Target.h.
References m_language.
Referenced by lldb_private::PlatformWindows::DoLoadImage(), PlatformPOSIX::EvaluateLibdlExpression(), lldb_private::PlatformWindows::EvaluateLoaderExpression(), lldb_private::CommandObjectExpression::CommandOptions::GetEvaluateExpressionOptions(), lldb_private::MemoryHistoryASan::GetHistoryThreads(), lldb_private::REPL::IOHandlerInputComplete(), lldb_private::ReportRetriever::RetrieveReportData(), lldb_private::InstrumentationRuntimeTSan::RetrieveReportData(), and lldb_private::InstrumentationRuntimeUBSan::RetrieveReportData().
|
inline |
Set the language using a pair of language code and version as defined by the DWARF 6 specification.
WARNING: These codes may change until DWARF 6 is finalized.
Definition at line 324 of file Target.h.
References m_language.
|
inline |
Definition at line 372 of file Target.h.
References m_one_thread_timeout.
|
inline |
Definition at line 421 of file Target.h.
References m_pound_line_file, and m_pound_line_line.
Referenced by lldb_private::REPL::IOHandlerInputComplete().
|
inline |
Definition at line 334 of file Target.h.
References m_prefix.
Referenced by lldb_private::MemoryHistoryASan::GetHistoryThreads(), lldb_private::ReportRetriever::RetrieveReportData(), lldb_private::InstrumentationRuntimeTSan::RetrieveReportData(), and lldb_private::InstrumentationRuntimeUBSan::RetrieveReportData().
|
inline |
Definition at line 406 of file Target.h.
References m_repl.
Referenced by lldb_private::REPL::IOHandlerInputComplete().
|
inline |
Definition at line 447 of file Target.h.
References m_retries_with_fixits.
Referenced by lldb_private::CommandObjectExpression::CommandOptions::GetEvaluateExpressionOptions().
|
inline |
Definition at line 382 of file Target.h.
References m_stop_others.
Referenced by lldb_private::Process::CallVoidArgVoidPtrReturn(), lldb_private::AppleGetQueuesHandler::GetCurrentQueues(), lldb_private::ItaniumABILanguageRuntime::GetExceptionObjectForThread(), lldb_private::MemoryHistoryASan::GetHistoryThreads(), lldb_private::AppleGetItemInfoHandler::GetItemInfo(), lldb_private::AppleObjCRuntime::GetObjectDescription(), lldb_private::AppleGetPendingItemsHandler::GetPendingItems(), lldb_private::AppleGetThreadItemInfoHandler::GetThreadItemInfo(), lldb_private::InferiorCallMmap(), lldb_private::InferiorCallMunmap(), lldb_private::AppleThreadPlanStepThroughObjCTrampoline::InitializeFunctionCaller(), lldb_private::ReportRetriever::RetrieveReportData(), lldb_private::InstrumentationRuntimeTSan::RetrieveReportData(), lldb_private::InstrumentationRuntimeUBSan::RetrieveReportData(), lldb_private::AppleObjCRuntimeV2::SharedCacheClassInfoExtractor::UpdateISAToDescriptorMap(), and lldb_private::AppleObjCRuntimeV2::DynamicClassInfoExtractor::UpdateISAToDescriptorMap().
|
inline |
Definition at line 437 of file Target.h.
References m_suppress_persistent_result.
Referenced by lldb_private::BreakpointLocation::ConditionSaysStop(), and lldb_private::CommandObjectDWIMPrint::DoExecute().
|
inline |
Definition at line 366 of file Target.h.
References m_timeout.
Referenced by lldb_private::Process::CallVoidArgVoidPtrReturn(), lldb_private::CommandObjectExpression::DoExecute(), lldb_private::PlatformWindows::DoLoadImage(), PlatformPOSIX::EvaluateLibdlExpression(), lldb_private::PlatformWindows::EvaluateLoaderExpression(), lldb_private::AppleGetQueuesHandler::GetCurrentQueues(), lldb_private::CommandObjectExpression::CommandOptions::GetEvaluateExpressionOptions(), lldb_private::ItaniumABILanguageRuntime::GetExceptionObjectForThread(), lldb_private::MemoryHistoryASan::GetHistoryThreads(), lldb_private::AppleGetItemInfoHandler::GetItemInfo(), lldb_private::AppleObjCRuntime::GetObjectDescription(), lldb_private::AppleGetPendingItemsHandler::GetPendingItems(), lldb_private::AppleGetThreadItemInfoHandler::GetThreadItemInfo(), lldb_private::InferiorCallMmap(), lldb_private::InferiorCallMunmap(), lldb_private::CommandInterpreter::PreprocessToken(), lldb_private::ReportRetriever::RetrieveReportData(), lldb_private::InstrumentationRuntimeTSan::RetrieveReportData(), lldb_private::InstrumentationRuntimeUBSan::RetrieveReportData(), lldb_private::AppleObjCRuntimeV2::SharedCacheClassInfoExtractor::UpdateISAToDescriptorMap(), and lldb_private::AppleObjCRuntimeV2::DynamicClassInfoExtractor::UpdateISAToDescriptorMap().
|
inline |
Definition at line 402 of file Target.h.
References m_trap_exceptions.
Referenced by lldb_private::Process::CallVoidArgVoidPtrReturn(), lldb_private::PlatformWindows::DoLoadImage(), PlatformPOSIX::EvaluateLibdlExpression(), lldb_private::PlatformWindows::EvaluateLoaderExpression(), lldb_private::InferiorCallMmap(), and lldb_private::InferiorCallMunmap().
|
inline |
Definition at line 378 of file Target.h.
References m_try_others.
Referenced by lldb_private::Process::CallVoidArgVoidPtrReturn(), lldb_private::BreakpointLocation::ConditionSaysStop(), lldb_private::CommandObjectExpression::DoExecute(), lldb_private::OptionArgParser::DoToAddress(), lldb_private::AppleGetQueuesHandler::GetCurrentQueues(), lldb_private::CommandObjectExpression::CommandOptions::GetEvaluateExpressionOptions(), lldb_private::ItaniumABILanguageRuntime::GetExceptionObjectForThread(), lldb_private::MemoryHistoryASan::GetHistoryThreads(), lldb_private::AppleGetItemInfoHandler::GetItemInfo(), lldb_private::AppleObjCRuntime::GetObjectDescription(), lldb_private::AppleGetPendingItemsHandler::GetPendingItems(), lldb_private::AppleGetThreadItemInfoHandler::GetThreadItemInfo(), lldb_private::InferiorCallMmap(), lldb_private::InferiorCallMunmap(), lldb_private::CommandInterpreter::PreprocessToken(), lldb_private::ReportRetriever::RetrieveReportData(), lldb_private::InstrumentationRuntimeTSan::RetrieveReportData(), lldb_private::InstrumentationRuntimeUBSan::RetrieveReportData(), lldb_private::AppleObjCRuntimeV2::SharedCacheClassInfoExtractor::UpdateISAToDescriptorMap(), and lldb_private::AppleObjCRuntimeV2::DynamicClassInfoExtractor::UpdateISAToDescriptorMap().
|
inline |
Definition at line 345 of file Target.h.
References m_unwind_on_error.
Referenced by lldb_private::Process::CallVoidArgVoidPtrReturn(), lldb_private::BreakpointLocation::ConditionSaysStop(), lldb_private::CommandObjectExpression::DoExecute(), CommandObjectThreadReturn::DoExecute(), lldb_private::PlatformWindows::DoLoadImage(), lldb_private::OptionArgParser::DoToAddress(), PlatformPOSIX::EvaluateLibdlExpression(), lldb_private::PlatformWindows::EvaluateLoaderExpression(), lldb_private::FunctionCaller::ExecuteFunction(), lldb_private::AppleGetQueuesHandler::GetCurrentQueues(), lldb_private::CommandObjectExpression::CommandOptions::GetEvaluateExpressionOptions(), lldb_private::ItaniumABILanguageRuntime::GetExceptionObjectForThread(), lldb_private::MemoryHistoryASan::GetHistoryThreads(), lldb_private::AppleGetItemInfoHandler::GetItemInfo(), lldb_private::AppleObjCRuntime::GetObjectDescription(), lldb_private::AppleGetPendingItemsHandler::GetPendingItems(), lldb_private::AppleGetThreadItemInfoHandler::GetThreadItemInfo(), lldb_private::InferiorCallMmap(), lldb_private::InferiorCallMunmap(), lldb_private::AppleThreadPlanStepThroughObjCTrampoline::InitializeFunctionCaller(), lldb_private::StopInfoWatchpoint::PerformAction(), lldb_private::CommandInterpreter::PreprocessToken(), lldb_private::ReportRetriever::RetrieveReportData(), lldb_private::InstrumentationRuntimeTSan::RetrieveReportData(), lldb_private::InstrumentationRuntimeUBSan::RetrieveReportData(), lldb_private::AppleObjCRuntimeV2::SharedCacheClassInfoExtractor::UpdateISAToDescriptorMap(), and lldb_private::AppleObjCRuntimeV2::DynamicClassInfoExtractor::UpdateISAToDescriptorMap().
|
inline |
Definition at line 360 of file Target.h.
References m_use_dynamic.
Referenced by CommandObjectThreadReturn::DoExecute(), lldb_private::CommandObjectExpression::CommandOptions::GetEvaluateExpressionOptions(), and lldb_private::REPL::IOHandlerInputComplete().
|
staticconstexpr |
Definition at line 304 of file Target.h.
Referenced by lldb_private::CommandObjectExpression::CommandOptions::GetEvaluateExpressionOptions().
|
staticconstexpr |
|
private |
Definition at line 471 of file Target.h.
Referenced by GetColorizeErrors(), and SetColorizeErrors().
|
private |
Definition at line 473 of file Target.h.
Referenced by GetAutoApplyFixIts(), and SetAutoApplyFixIts().
|
private |
Definition at line 482 of file Target.h.
Referenced by InvokeCancelCallback(), and SetCancelCallback().
|
private |
Definition at line 483 of file Target.h.
Referenced by InvokeCancelCallback(), and SetCancelCallback().
|
private |
Definition at line 461 of file Target.h.
Referenced by DoesCoerceToId(), and SetCoerceToId().
|
private |
Definition at line 467 of file Target.h.
Referenced by GetDebug(), and SetDebug().
|
private |
Definition at line 458 of file Target.h.
Referenced by GetExecutionPolicy(), and SetExecutionPolicy().
|
private |
Definition at line 470 of file Target.h.
Referenced by GetGenerateDebugInfo(), SetDebug(), and SetGenerateDebugInfo().
|
private |
Definition at line 463 of file Target.h.
Referenced by DoesIgnoreBreakpoints(), and SetIgnoreBreakpoints().
|
private |
Definition at line 464 of file Target.h.
Referenced by DoesKeepInMemory(), and SetKeepInMemory().
|
private |
Definition at line 459 of file Target.h.
Referenced by GetLanguage(), and SetLanguage().
|
private |
Definition at line 481 of file Target.h.
Referenced by GetOneThreadTimeout(), and SetOneThreadTimeout().
|
mutableprivate |
Definition at line 487 of file Target.h.
Referenced by GetPoundLineFilePath(), and SetPoundLine().
|
mutableprivate |
Definition at line 488 of file Target.h.
Referenced by GetPoundLineLine(), and SetPoundLine().
|
private |
Definition at line 460 of file Target.h.
Referenced by GetPrefix(), and SetPrefix().
|
private |
Definition at line 469 of file Target.h.
Referenced by GetREPLEnabled(), and SetREPLEnabled().
|
private |
Definition at line 474 of file Target.h.
Referenced by GetRetriesWithFixIts(), and SetRetriesWithFixIts().
|
private |
True if the executed code should be treated as utility code that is only used by LLDB internally.
Definition at line 477 of file Target.h.
Referenced by IsForUtilityExpr(), and SetIsForUtilityExpr().
|
private |
Definition at line 466 of file Target.h.
Referenced by GetStopOthers(), and SetStopOthers().
|
private |
Definition at line 472 of file Target.h.
Referenced by GetSuppressPersistentResult(), and SetSuppressPersistentResult().
|
private |
Definition at line 480 of file Target.h.
Referenced by GetTimeout(), and SetTimeout().
|
private |
Definition at line 468 of file Target.h.
Referenced by GetTrapExceptions(), and SetTrapExceptions().
|
private |
Definition at line 465 of file Target.h.
Referenced by GetTryAllThreads(), and SetTryAllThreads().
|
private |
Definition at line 462 of file Target.h.
Referenced by DoesUnwindOnError(), and SetUnwindOnError().
|
private |
Definition at line 479 of file Target.h.
Referenced by GetUseDynamic(), and SetUseDynamic().