|
LLDB mainline
|
#include <Target.h>
Static Public Attributes | |
| static constexpr std::chrono::milliseconds | default_timeout {500} |
| static constexpr ExecutionPolicy | default_execution_policy |
Private Member Functions | |
| const StructuredData::Dictionary & | GetLanguageOptions () const |
| StructuredData::Dictionary & | GetLanguageOptions () |
| EvaluateExpressionOptions::EvaluateExpressionOptions | ( | ) |
Definition at line 6224 of file Target.cpp.
References m_language_options_sp, and SetCppIgnoreContextQualifiers().
|
inline |
Definition at line 390 of file Target.h.
References m_coerce_to_id.
Referenced by lldb_private::UserExpression::Evaluate().
|
inline |
Definition at line 409 of file Target.h.
References m_ignore_breakpoints.
Referenced by lldb_private::LLVMUserExpression::DoExecute(), HandleStoppedEvent(), and lldb_private::Process::RunThreadPlan().
|
inline |
Definition at line 415 of file Target.h.
References m_keep_in_memory.
|
inline |
Definition at line 405 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 511 of file Target.h.
References m_auto_apply_fixits.
Referenced by lldb_private::UserExpression::Evaluate().
| llvm::Expected< bool > EvaluateExpressionOptions::GetBooleanLanguageOption | ( | llvm::StringRef | option_name | ) | const |
Get the language-plugin specific boolean option called option_name.
If the option doesn't exist or is not a boolean option, returns false. Otherwise returns the boolean value of the option.
Definition at line 6191 of file Target.cpp.
References GetLanguageOptions(), lldb_private::StructuredData::Dictionary::GetValueForKeyAsBoolean(), and lldb_private::StructuredData::Dictionary::HasKey().
Referenced by GetCppIgnoreContextQualifiers().
|
inline |
Definition at line 458 of file Target.h.
References m_ansi_color_errors.
| bool EvaluateExpressionOptions::GetCppIgnoreContextQualifiers | ( | ) | const |
Definition at line 6234 of file Target.cpp.
References GetBooleanLanguageOption(), and s_cpp_ignore_context_qualifiers_option.
|
inline |
Definition at line 446 of file Target.h.
References m_debug.
Referenced by lldb_private::Process::RunThreadPlan().
|
inline |
Definition at line 363 of file Target.h.
References m_execution_policy.
Referenced by lldb_private::UserExpression::Evaluate().
|
inline |
Definition at line 454 of file Target.h.
References m_generate_debug_info.
Referenced by lldb_private::UserExpression::Evaluate().
|
inline |
Definition at line 369 of file Target.h.
References m_language.
Referenced by lldb_private::UserExpression::Evaluate().
|
private |
Definition at line 6213 of file Target.cpp.
References m_language_options_sp.
|
private |
Definition at line 6207 of file Target.cpp.
References m_language_options_sp.
Referenced by GetBooleanLanguageOption(), and SetBooleanLanguageOption().
|
inline |
Definition at line 430 of file Target.h.
References m_one_thread_timeout.
Referenced by GetOneThreadExpressionTimeout(), and lldb_private::Process::RunThreadPlan().
|
inline |
Definition at line 497 of file Target.h.
References m_pound_line_file.
|
inline |
Definition at line 501 of file Target.h.
References m_pound_line_line.
|
inline |
Definition at line 379 of file Target.h.
References m_preferred_lookup_contexts.
|
inline |
Definition at line 392 of file Target.h.
References m_prefix.
Referenced by lldb_private::UserExpression::Evaluate().
|
inline |
|
inline |
Definition at line 517 of file Target.h.
References m_retries_with_fixits.
Referenced by lldb_private::UserExpression::Evaluate().
|
inline |
Definition at line 466 of file Target.h.
References m_stop_on_fork.
Referenced by lldb_private::Process::RunThreadPlan().
|
inline |
Definition at line 442 of file Target.h.
References m_stop_others.
Referenced by GetExpressionTimeout(), and lldb_private::Process::RunThreadPlan().
|
inline |
Definition at line 505 of file Target.h.
References m_suppress_persistent_result.
Referenced by lldb_private::UserExpression::Execute().
|
inline |
Definition at line 426 of file Target.h.
References m_timeout.
Referenced by lldb_private::LLVMUserExpression::DoExecute(), GetExpressionTimeout(), GetOneThreadExpressionTimeout(), and lldb_private::Process::RunThreadPlan().
|
inline |
Definition at line 462 of file Target.h.
References m_trap_exceptions.
|
inline |
Definition at line 438 of file Target.h.
References m_try_others.
Referenced by GetExpressionTimeout(), and lldb_private::Process::RunThreadPlan().
|
inline |
Definition at line 540 of file Target.h.
References m_try_DIL_first.
|
inline |
Definition at line 419 of file Target.h.
References m_use_dynamic.
Referenced by lldb_private::CommandObjectDWIMPrint::DoExecute().
|
inline |
Definition at line 479 of file Target.h.
References m_cancel_callback, and m_cancel_callback_baton.
Referenced by lldb_private::UserExpression::Evaluate().
|
inline |
Definition at line 519 of file Target.h.
References m_running_utility_expression.
Referenced by lldb_private::Process::RunThreadPlan().
|
inline |
Definition at line 509 of file Target.h.
References m_auto_apply_fixits.
Referenced by lldb_private::CommandObjectExpression::CommandOptions::GetEvaluateExpressionOptions(), lldb_private::MemoryHistoryASan::GetHistoryThreads(), lldb_private::InstrumentationRuntimeASan::RetrieveReportData(), lldb_private::InstrumentationRuntimeTSan::RetrieveReportData(), and lldb_private::InstrumentationRuntimeUBSan::RetrieveReportData().
| llvm::Error EvaluateExpressionOptions::SetBooleanLanguageOption | ( | llvm::StringRef | option_name, |
| bool | value ) |
Set language-plugin specific option called option_name to the specified boolean value.
Definition at line 6174 of file Target.cpp.
References lldb::eStructuredDataTypeBoolean, and GetLanguageOptions().
Referenced by SetCppIgnoreContextQualifiers().
|
inline |
Definition at line 474 of file Target.h.
References m_cancel_callback, and m_cancel_callback_baton.
|
inline |
Definition at line 403 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 460 of file Target.h.
References m_ansi_color_errors.
Referenced by lldb_private::REPL::IOHandlerInputComplete().
| void EvaluateExpressionOptions::SetCppIgnoreContextQualifiers | ( | bool | value | ) |
Definition at line 6229 of file Target.cpp.
References s_cpp_ignore_context_qualifiers_option, and SetBooleanLanguageOption().
Referenced by EvaluateExpressionOptions(), and lldb_private::CommandObjectExpression::CommandOptions::GetEvaluateExpressionOptions().
|
inline |
Definition at line 448 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 365 of file Target.h.
References lldb_private::eExecutionPolicyAlways, and m_execution_policy.
Referenced by lldb_private::PlatformWindows::DoLoadImage(), PlatformPOSIX::EvaluateLibdlExpression(), and lldb_private::CommandObjectExpression::CommandOptions::GetEvaluateExpressionOptions().
|
inline |
Definition at line 456 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 411 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::FunctionCaller::ExecuteFunction(), lldb_private::AppleGetQueuesHandler::GetCurrentQueues(), lldb_private::CommandObjectExpression::CommandOptions::GetEvaluateExpressionOptions(), lldb_private::ItaniumABIRuntime::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::InstrumentationRuntimeASan::RetrieveReportData(), lldb_private::InstrumentationRuntimeTSan::RetrieveReportData(), and lldb_private::InstrumentationRuntimeUBSan::RetrieveReportData().
|
inline |
Definition at line 521 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(), and lldb_private::AppleGetThreadItemInfoHandler::GetThreadItemInfo().
|
inline |
Definition at line 417 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 371 of file Target.h.
References m_language.
Referenced by lldb_private::PlatformWindows::DoLoadImage(), PlatformPOSIX::EvaluateLibdlExpression(), lldb_private::CommandObjectExpression::CommandOptions::GetEvaluateExpressionOptions(), lldb_private::MemoryHistoryASan::GetHistoryThreads(), lldb_private::REPL::IOHandlerInputComplete(), lldb_private::InstrumentationRuntimeASan::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 386 of file Target.h.
References m_language.
|
inline |
Definition at line 434 of file Target.h.
References m_one_thread_timeout.
Referenced by lldb_private::PlatformWindows::DoLoadImage().
|
inline |
Definition at line 487 of file Target.h.
References m_pound_line_file, and m_pound_line_line.
Referenced by lldb_private::REPL::IOHandlerInputComplete().
|
inline |
Definition at line 375 of file Target.h.
References m_preferred_lookup_contexts.
Referenced by lldb_private::MemoryHistoryASan::GetHistoryThreads(), and lldb_private::InstrumentationRuntimeASan::RetrieveReportData().
|
inline |
Definition at line 396 of file Target.h.
References m_prefix.
Referenced by lldb_private::MemoryHistoryASan::GetHistoryThreads(), lldb_private::InstrumentationRuntimeASan::RetrieveReportData(), lldb_private::InstrumentationRuntimeTSan::RetrieveReportData(), and lldb_private::InstrumentationRuntimeUBSan::RetrieveReportData().
|
inline |
Definition at line 472 of file Target.h.
References m_repl.
Referenced by lldb_private::REPL::IOHandlerInputComplete().
|
inline |
Definition at line 513 of file Target.h.
References m_retries_with_fixits.
Referenced by lldb_private::CommandObjectExpression::CommandOptions::GetEvaluateExpressionOptions().
|
inline |
Definition at line 468 of file Target.h.
References m_stop_on_fork.
|
inline |
Definition at line 444 of file Target.h.
References m_stop_others.
Referenced by lldb_private::Process::CallVoidArgVoidPtrReturn(), lldb_private::AppleGetQueuesHandler::GetCurrentQueues(), lldb_private::ItaniumABIRuntime::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::InstrumentationRuntimeASan::RetrieveReportData(), lldb_private::InstrumentationRuntimeTSan::RetrieveReportData(), and lldb_private::InstrumentationRuntimeUBSan::RetrieveReportData().
|
inline |
Definition at line 503 of file Target.h.
References m_suppress_persistent_result.
Referenced by lldb_private::BreakpointLocation::ConditionSaysStop(), and lldb_private::CommandObjectDWIMPrint::DoExecute().
|
inline |
Definition at line 428 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::AppleGetQueuesHandler::GetCurrentQueues(), lldb_private::CommandObjectExpression::CommandOptions::GetEvaluateExpressionOptions(), lldb_private::ItaniumABIRuntime::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::InstrumentationRuntimeASan::RetrieveReportData(), lldb_private::InstrumentationRuntimeTSan::RetrieveReportData(), and lldb_private::InstrumentationRuntimeUBSan::RetrieveReportData().
|
inline |
Definition at line 464 of file Target.h.
References m_trap_exceptions.
Referenced by lldb_private::Process::CallVoidArgVoidPtrReturn(), lldb_private::PlatformWindows::DoLoadImage(), PlatformPOSIX::EvaluateLibdlExpression(), lldb_private::InferiorCallMmap(), and lldb_private::InferiorCallMunmap().
|
inline |
Definition at line 440 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::ItaniumABIRuntime::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::InstrumentationRuntimeASan::RetrieveReportData(), lldb_private::InstrumentationRuntimeTSan::RetrieveReportData(), lldb_private::InstrumentationRuntimeUBSan::RetrieveReportData(), and lldb_private::Process::RunThreadPlan().
|
inline |
Definition at line 538 of file Target.h.
References m_try_DIL_first.
|
inline |
Definition at line 407 of file Target.h.
References m_unwind_on_error.
Referenced by lldb_private::Process::CallVoidArgVoidPtrReturn(), lldb_private::BreakpointLocation::ConditionSaysStop(), CommandObjectThreadReturn::DoExecute(), lldb_private::CommandObjectExpression::DoExecute(), lldb_private::PlatformWindows::DoLoadImage(), lldb_private::OptionArgParser::DoToAddress(), PlatformPOSIX::EvaluateLibdlExpression(), lldb_private::FunctionCaller::ExecuteFunction(), lldb_private::AppleGetQueuesHandler::GetCurrentQueues(), lldb_private::CommandObjectExpression::CommandOptions::GetEvaluateExpressionOptions(), lldb_private::ItaniumABIRuntime::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::InstrumentationRuntimeASan::RetrieveReportData(), lldb_private::InstrumentationRuntimeTSan::RetrieveReportData(), and lldb_private::InstrumentationRuntimeUBSan::RetrieveReportData().
|
inline |
Definition at line 422 of file Target.h.
References lldb::eDynamicCanRunTarget, and m_use_dynamic.
Referenced by CommandObjectThreadReturn::DoExecute(), lldb_private::CommandObjectExpression::CommandOptions::GetEvaluateExpressionOptions(), and lldb_private::REPL::IOHandlerInputComplete().
|
staticconstexpr |
Definition at line 360 of file Target.h.
Referenced by lldb_private::CommandObjectExpression::CommandOptions::GetEvaluateExpressionOptions().
|
staticconstexpr |
|
private |
Definition at line 561 of file Target.h.
Referenced by GetColorizeErrors(), and SetColorizeErrors().
|
private |
Definition at line 563 of file Target.h.
Referenced by GetAutoApplyFixIts(), and SetAutoApplyFixIts().
|
private |
Definition at line 576 of file Target.h.
Referenced by InvokeCancelCallback(), and SetCancelCallback().
|
private |
Definition at line 577 of file Target.h.
Referenced by InvokeCancelCallback(), and SetCancelCallback().
|
private |
Definition at line 550 of file Target.h.
Referenced by DoesCoerceToId(), and SetCoerceToId().
|
private |
Definition at line 556 of file Target.h.
Referenced by GetDebug(), and SetDebug().
|
private |
Definition at line 547 of file Target.h.
Referenced by GetExecutionPolicy(), and SetExecutionPolicy().
|
private |
Definition at line 560 of file Target.h.
Referenced by GetGenerateDebugInfo(), SetDebug(), and SetGenerateDebugInfo().
|
private |
Definition at line 552 of file Target.h.
Referenced by DoesIgnoreBreakpoints(), and SetIgnoreBreakpoints().
|
private |
Definition at line 553 of file Target.h.
Referenced by DoesKeepInMemory(), and SetKeepInMemory().
|
private |
Definition at line 548 of file Target.h.
Referenced by GetLanguage(), SetLanguage(), and SetLanguage().
|
private |
Dictionary mapping names of language-plugin specific options to values.
Definition at line 586 of file Target.h.
Referenced by EvaluateExpressionOptions(), GetLanguageOptions(), and GetLanguageOptions().
|
private |
Definition at line 575 of file Target.h.
Referenced by GetOneThreadTimeout(), and SetOneThreadTimeout().
|
mutableprivate |
Definition at line 581 of file Target.h.
Referenced by GetPoundLineFilePath(), and SetPoundLine().
|
mutableprivate |
Definition at line 582 of file Target.h.
Referenced by GetPoundLineLine(), and SetPoundLine().
|
private |
During expression evaluation, any SymbolContext in this list will be used for symbol/function lookup before any other context (except for the module corresponding to the current frame).
Definition at line 591 of file Target.h.
Referenced by GetPreferredSymbolContexts(), and SetPreferredSymbolContexts().
|
private |
Definition at line 549 of file Target.h.
Referenced by GetPrefix(), and SetPrefix().
|
private |
Definition at line 559 of file Target.h.
Referenced by GetREPLEnabled(), and SetREPLEnabled().
|
private |
Definition at line 564 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 567 of file Target.h.
Referenced by IsForUtilityExpr(), and SetIsForUtilityExpr().
|
private |
Definition at line 558 of file Target.h.
Referenced by GetStopOnFork(), and SetStopOnFork().
|
private |
Definition at line 555 of file Target.h.
Referenced by GetStopOthers(), and SetStopOthers().
|
private |
Definition at line 562 of file Target.h.
Referenced by GetSuppressPersistentResult(), and SetSuppressPersistentResult().
|
private |
Definition at line 574 of file Target.h.
Referenced by GetTimeout(), and SetTimeout().
|
private |
Definition at line 557 of file Target.h.
Referenced by GetTrapExceptions(), and SetTrapExceptions().
|
private |
If enabled, Data Inspection Language (DIL) should attempt to evaluate the expression first.
If DIL is not called or fails, the evaluation falls back to UserExpression.
Definition at line 571 of file Target.h.
Referenced by GetTryDILFirst(), and SetTryDILFirst().
|
private |
Definition at line 554 of file Target.h.
Referenced by GetTryAllThreads(), and SetTryAllThreads().
|
private |
Definition at line 551 of file Target.h.
Referenced by DoesUnwindOnError(), and SetUnwindOnError().
|
private |
Definition at line 573 of file Target.h.
Referenced by GetUseDynamic(), and SetUseDynamic().