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 331 of file Target.h.
References m_coerce_to_id.
Referenced by lldb_private::UserExpression::Evaluate().
|
inline |
Definition at line 350 of file Target.h.
References m_ignore_breakpoints.
Referenced by lldb_private::LLVMUserExpression::DoExecute(), HandleStoppedEvent(), and lldb_private::Process::RunThreadPlan().
|
inline |
Definition at line 356 of file Target.h.
References m_keep_in_memory.
|
inline |
Definition at line 346 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 448 of file Target.h.
References m_auto_apply_fixits.
Referenced by lldb_private::UserExpression::Evaluate().
|
inline |
Definition at line 399 of file Target.h.
References m_ansi_color_errors.
|
inline |
Definition at line 387 of file Target.h.
References m_debug.
Referenced by lldb_private::Process::RunThreadPlan().
|
inline |
Definition at line 312 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 395 of file Target.h.
References m_generate_debug_info.
Referenced by lldb_private::UserExpression::Evaluate().
|
inline |
Definition at line 318 of file Target.h.
References m_language.
Referenced by lldb_private::UserExpression::Evaluate().
|
inline |
Definition at line 371 of file Target.h.
References m_one_thread_timeout.
Referenced by GetOneThreadExpressionTimeout(), and lldb_private::Process::RunThreadPlan().
|
inline |
Definition at line 434 of file Target.h.
References m_pound_line_file.
|
inline |
Definition at line 438 of file Target.h.
References m_pound_line_line.
|
inline |
Definition at line 333 of file Target.h.
References m_prefix.
Referenced by lldb_private::UserExpression::Evaluate().
|
inline |
|
inline |
Definition at line 454 of file Target.h.
References m_retries_with_fixits.
Referenced by lldb_private::UserExpression::Evaluate().
|
inline |
Definition at line 383 of file Target.h.
References m_stop_others.
Referenced by GetExpressionTimeout(), and lldb_private::Process::RunThreadPlan().
|
inline |
Definition at line 442 of file Target.h.
References m_suppress_persistent_result.
Referenced by lldb_private::UserExpression::Execute().
|
inline |
Definition at line 367 of file Target.h.
References m_timeout.
Referenced by lldb_private::LLVMUserExpression::DoExecute(), GetExpressionTimeout(), GetOneThreadExpressionTimeout(), and lldb_private::Process::RunThreadPlan().
|
inline |
Definition at line 403 of file Target.h.
References m_trap_exceptions.
|
inline |
Definition at line 379 of file Target.h.
References m_try_others.
Referenced by GetExpressionTimeout(), and lldb_private::Process::RunThreadPlan().
|
inline |
Definition at line 360 of file Target.h.
References m_use_dynamic.
|
inline |
Definition at line 416 of file Target.h.
References m_cancel_callback, and m_cancel_callback_baton.
Referenced by lldb_private::UserExpression::Evaluate().
|
inline |
Definition at line 456 of file Target.h.
References m_running_utility_expression.
Referenced by lldb_private::Process::RunThreadPlan().
|
inline |
Definition at line 446 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 411 of file Target.h.
References m_cancel_callback, and m_cancel_callback_baton.
|
inline |
Definition at line 344 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 401 of file Target.h.
References m_ansi_color_errors.
Referenced by lldb_private::REPL::IOHandlerInputComplete().
|
inline |
Definition at line 389 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 314 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 397 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 352 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 458 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 358 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 320 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 327 of file Target.h.
References m_language.
|
inline |
Definition at line 375 of file Target.h.
References m_one_thread_timeout.
|
inline |
Definition at line 424 of file Target.h.
References m_pound_line_file, and m_pound_line_line.
Referenced by lldb_private::REPL::IOHandlerInputComplete().
|
inline |
Definition at line 337 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 409 of file Target.h.
References m_repl.
Referenced by lldb_private::REPL::IOHandlerInputComplete().
|
inline |
Definition at line 450 of file Target.h.
References m_retries_with_fixits.
Referenced by lldb_private::CommandObjectExpression::CommandOptions::GetEvaluateExpressionOptions().
|
inline |
Definition at line 385 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 440 of file Target.h.
References m_suppress_persistent_result.
Referenced by lldb_private::BreakpointLocation::ConditionSaysStop(), and lldb_private::CommandObjectDWIMPrint::DoExecute().
|
inline |
Definition at line 369 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 405 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 381 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 348 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 363 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 307 of file Target.h.
Referenced by lldb_private::CommandObjectExpression::CommandOptions::GetEvaluateExpressionOptions().
|
staticconstexpr |
|
private |
Definition at line 474 of file Target.h.
Referenced by GetColorizeErrors(), and SetColorizeErrors().
|
private |
Definition at line 476 of file Target.h.
Referenced by GetAutoApplyFixIts(), and SetAutoApplyFixIts().
|
private |
Definition at line 485 of file Target.h.
Referenced by InvokeCancelCallback(), and SetCancelCallback().
|
private |
Definition at line 486 of file Target.h.
Referenced by InvokeCancelCallback(), and SetCancelCallback().
|
private |
Definition at line 464 of file Target.h.
Referenced by DoesCoerceToId(), and SetCoerceToId().
|
private |
Definition at line 470 of file Target.h.
Referenced by GetDebug(), and SetDebug().
|
private |
Definition at line 461 of file Target.h.
Referenced by GetExecutionPolicy(), and SetExecutionPolicy().
|
private |
Definition at line 473 of file Target.h.
Referenced by GetGenerateDebugInfo(), SetDebug(), and SetGenerateDebugInfo().
|
private |
Definition at line 466 of file Target.h.
Referenced by DoesIgnoreBreakpoints(), and SetIgnoreBreakpoints().
|
private |
Definition at line 467 of file Target.h.
Referenced by DoesKeepInMemory(), and SetKeepInMemory().
|
private |
Definition at line 462 of file Target.h.
Referenced by GetLanguage(), and SetLanguage().
|
private |
Definition at line 484 of file Target.h.
Referenced by GetOneThreadTimeout(), and SetOneThreadTimeout().
|
mutableprivate |
Definition at line 490 of file Target.h.
Referenced by GetPoundLineFilePath(), and SetPoundLine().
|
mutableprivate |
Definition at line 491 of file Target.h.
Referenced by GetPoundLineLine(), and SetPoundLine().
|
private |
Definition at line 463 of file Target.h.
Referenced by GetPrefix(), and SetPrefix().
|
private |
Definition at line 472 of file Target.h.
Referenced by GetREPLEnabled(), and SetREPLEnabled().
|
private |
Definition at line 477 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 480 of file Target.h.
Referenced by IsForUtilityExpr(), and SetIsForUtilityExpr().
|
private |
Definition at line 469 of file Target.h.
Referenced by GetStopOthers(), and SetStopOthers().
|
private |
Definition at line 475 of file Target.h.
Referenced by GetSuppressPersistentResult(), and SetSuppressPersistentResult().
|
private |
Definition at line 483 of file Target.h.
Referenced by GetTimeout(), and SetTimeout().
|
private |
Definition at line 471 of file Target.h.
Referenced by GetTrapExceptions(), and SetTrapExceptions().
|
private |
Definition at line 468 of file Target.h.
Referenced by GetTryAllThreads(), and SetTryAllThreads().
|
private |
Definition at line 465 of file Target.h.
Referenced by DoesUnwindOnError(), and SetUnwindOnError().
|
private |
Definition at line 482 of file Target.h.
Referenced by GetUseDynamic(), and SetUseDynamic().