LLDB mainline
|
#include <Process.h>
Public Member Functions | |
ProcessProperties (lldb_private::Process *process) | |
~ProcessProperties () override | |
bool | GetDisableMemoryCache () const |
uint64_t | GetMemoryCacheLineSize () const |
Args | GetExtraStartupCommands () const |
void | SetExtraStartupCommands (const Args &args) |
FileSpec | GetPythonOSPluginPath () const |
uint32_t | GetVirtualAddressableBits () const |
void | SetVirtualAddressableBits (uint32_t bits) |
uint32_t | GetHighmemVirtualAddressableBits () const |
void | SetHighmemVirtualAddressableBits (uint32_t bits) |
void | SetPythonOSPluginPath (const FileSpec &file) |
bool | GetIgnoreBreakpointsInExpressions () const |
void | SetIgnoreBreakpointsInExpressions (bool ignore) |
bool | GetUnwindOnErrorInExpressions () const |
void | SetUnwindOnErrorInExpressions (bool ignore) |
bool | GetStopOnSharedLibraryEvents () const |
void | SetStopOnSharedLibraryEvents (bool stop) |
bool | GetDisableLangRuntimeUnwindPlans () const |
void | SetDisableLangRuntimeUnwindPlans (bool disable) |
bool | GetDetachKeepsStopped () const |
void | SetDetachKeepsStopped (bool keep_stopped) |
bool | GetWarningsOptimization () const |
bool | GetWarningsUnsupportedLanguage () const |
bool | GetStopOnExec () const |
std::chrono::seconds | GetUtilityExpressionTimeout () const |
std::chrono::seconds | GetInterruptTimeout () const |
bool | GetOSPluginReportsAllThreads () const |
void | SetOSPluginReportsAllThreads (bool does_report) |
bool | GetSteppingRunsAllThreads () const |
FollowForkMode | GetFollowForkMode () const |
Public Member Functions inherited from lldb_private::Properties | |
Properties () | |
Properties (const lldb::OptionValuePropertiesSP &collection_sp) | |
virtual | ~Properties () |
virtual lldb::OptionValuePropertiesSP | GetValueProperties () const |
virtual lldb::OptionValueSP | GetPropertyValue (const ExecutionContext *exe_ctx, llvm::StringRef property_path, Status &error) const |
virtual Status | SetPropertyValue (const ExecutionContext *exe_ctx, VarSetOperationType op, llvm::StringRef property_path, llvm::StringRef value) |
virtual Status | DumpPropertyValue (const ExecutionContext *exe_ctx, Stream &strm, llvm::StringRef property_path, uint32_t dump_mask, bool is_json=false) |
virtual void | DumpAllPropertyValues (const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask, bool is_json=false) |
virtual void | DumpAllDescriptions (CommandInterpreter &interpreter, Stream &strm) const |
size_t | Apropos (llvm::StringRef keyword, std::vector< const Property * > &matching_properties) const |
template<typename T > | |
T | GetPropertyAtIndexAs (uint32_t idx, T default_value, const ExecutionContext *exe_ctx=nullptr) const |
template<typename T , typename U = typename std::remove_pointer<T>::type, std::enable_if_t< std::is_pointer_v< T >, bool > = true> | |
const U * | GetPropertyAtIndexAs (uint32_t idx, const ExecutionContext *exe_ctx=nullptr) const |
template<typename T > | |
bool | SetPropertyAtIndex (uint32_t idx, T t, const ExecutionContext *exe_ctx=nullptr) const |
Protected Attributes | |
Process * | m_process |
std::unique_ptr< ProcessExperimentalProperties > | m_experimental_properties_up |
Protected Attributes inherited from lldb_private::Properties | |
lldb::OptionValuePropertiesSP | m_collection_sp |
Additional Inherited Members | |
Static Public Member Functions inherited from lldb_private::Properties | |
static llvm::StringRef | GetExperimentalSettingsName () |
static bool | IsSettingExperimental (llvm::StringRef setting) |
ProcessProperties::ProcessProperties | ( | lldb_private::Process * | process | ) |
Definition at line 188 of file Process.cpp.
References lldb_private::OptionValueProperties::CreateLocalCopy(), lldb_private::Properties::GetExperimentalSettingsName(), lldb_private::Process::GetGlobalProperties(), lldb_private::Thread::GetGlobalProperties(), lldb_private::Properties::GetValueProperties(), lldb_private::Process::LoadOperatingSystemPlugin(), lldb_private::Properties::m_collection_sp, m_experimental_properties_up, and m_process.
|
overridedefault |
bool ProcessProperties::GetDetachKeepsStopped | ( | ) | const |
Definition at line 319 of file Process.cpp.
Referenced by CommandObjectProcessDetach::DoExecute().
bool ProcessProperties::GetDisableLangRuntimeUnwindPlans | ( | ) | const |
Definition at line 307 of file Process.cpp.
bool ProcessProperties::GetDisableMemoryCache | ( | ) | const |
Definition at line 218 of file Process.cpp.
Referenced by lldb_private::Process::ReadMemory().
Args ProcessProperties::GetExtraStartupCommands | ( | ) | const |
Definition at line 230 of file Process.cpp.
References lldb_private::Properties::m_collection_sp.
Referenced by lldb_private::process_gdb_remote::ProcessGDBRemote::ConnectToDebugserver().
FollowForkMode ProcessProperties::GetFollowForkMode | ( | ) | const |
Definition at line 392 of file Process.cpp.
Referenced by lldb_private::process_gdb_remote::ProcessGDBRemote::DidExec(), lldb_private::process_gdb_remote::ProcessGDBRemote::DidFork(), and lldb_private::process_gdb_remote::ProcessGDBRemote::DidVFork().
uint32_t ProcessProperties::GetHighmemVirtualAddressableBits | ( | ) | const |
Definition at line 258 of file Process.cpp.
Referenced by lldb_private::Process::GetHighmemCodeAddressMask(), and lldb_private::Process::GetHighmemDataAddressMask().
bool ProcessProperties::GetIgnoreBreakpointsInExpressions | ( | ) | const |
Definition at line 274 of file Process.cpp.
Referenced by lldb_private::StopInfoBreakpoint::PerformAction().
std::chrono::seconds ProcessProperties::GetInterruptTimeout | ( | ) | const |
Definition at line 355 of file Process.cpp.
Referenced by lldb_private::process_gdb_remote::ProcessGDBRemote::AsyncThread(), lldb_private::process_gdb_remote::ProcessGDBRemote::DidForkSwitchHardwareTraps(), lldb_private::process_gdb_remote::ProcessGDBRemote::DisableBreakpointSite(), lldb_private::process_gdb_remote::ProcessGDBRemote::DisableWatchpoint(), CommandObjectProcessGDBRemotePacketSend::DoExecute(), CommandObjectProcessGDBRemotePacketMonitor::DoExecute(), lldb_private::process_gdb_remote::ProcessGDBRemote::DoHalt(), lldb_private::process_gdb_remote::ProcessGDBRemote::DoReadMemory(), lldb_private::process_gdb_remote::ProcessGDBRemote::DoSignal(), lldb_private::process_gdb_remote::ProcessGDBRemote::DoWriteMemory(), lldb_private::process_gdb_remote::ProcessGDBRemote::EnableBreakpointSite(), lldb_private::process_gdb_remote::ProcessGDBRemote::EnableWatchpoint(), lldb_private::process_gdb_remote::ProcessGDBRemote::FlashDone(), lldb_private::process_gdb_remote::ProcessGDBRemote::FlashErase(), lldb_private::Process::Halt(), lldb_private::Process::StopForDestroyOrDetach(), lldb_private::process_gdb_remote::ProcessGDBRemote::TraceGetBinaryData(), lldb_private::process_gdb_remote::ProcessGDBRemote::TraceGetState(), lldb_private::process_gdb_remote::ProcessGDBRemote::TraceStart(), lldb_private::process_gdb_remote::ProcessGDBRemote::TraceStop(), and lldb_private::process_gdb_remote::ProcessGDBRemote::TraceSupported().
uint64_t ProcessProperties::GetMemoryCacheLineSize | ( | ) | const |
Definition at line 224 of file Process.cpp.
Referenced by lldb_private::MemoryCache::Clear().
bool ProcessProperties::GetOSPluginReportsAllThreads | ( | ) | const |
Definition at line 368 of file Process.cpp.
References ePropertyExperimental, lldb_private::OptionValueProperties::GetPropertyAtIndexAs(), lldb_private::Property::GetValue(), and lldb_private::Properties::m_collection_sp.
Referenced by lldb_private::Process::UpdateThreadListIfNeeded().
FileSpec ProcessProperties::GetPythonOSPluginPath | ( | ) | const |
Definition at line 242 of file Process.cpp.
bool ProcessProperties::GetSteppingRunsAllThreads | ( | ) | const |
Definition at line 362 of file Process.cpp.
bool ProcessProperties::GetStopOnExec | ( | ) | const |
Definition at line 342 of file Process.cpp.
bool ProcessProperties::GetStopOnSharedLibraryEvents | ( | ) | const |
Definition at line 296 of file Process.cpp.
Referenced by lldb_private::DynamicLoader::GetStopWhenImagesChange().
bool ProcessProperties::GetUnwindOnErrorInExpressions | ( | ) | const |
Definition at line 285 of file Process.cpp.
std::chrono::seconds ProcessProperties::GetUtilityExpressionTimeout | ( | ) | const |
Definition at line 348 of file Process.cpp.
Referenced by lldb_private::Process::CallVoidArgVoidPtrReturn(), lldb_private::Process::ControlPrivateStateThread(), PlatformPOSIX::DoLoadImage(), lldb_private::PlatformWindows::DoLoadImage(), PlatformPOSIX::EvaluateLibdlExpression(), lldb_private::PlatformWindows::EvaluateLoaderExpression(), lldb_private::ItaniumABILanguageRuntime::GetExceptionObjectForThread(), lldb_private::AppleObjCRuntime::GetObjectDescription(), lldb_private::InferiorCallMmap(), lldb_private::InferiorCallMunmap(), lldb_private::Process::RunThreadPlan(), lldb_private::AppleObjCRuntimeV2::SharedCacheClassInfoExtractor::UpdateISAToDescriptorMap(), and lldb_private::AppleObjCRuntimeV2::DynamicClassInfoExtractor::UpdateISAToDescriptorMap().
uint32_t ProcessProperties::GetVirtualAddressableBits | ( | ) | const |
Definition at line 247 of file Process.cpp.
Referenced by lldb_private::Process::GetCodeAddressMask(), and lldb_private::Process::GetDataAddressMask().
bool ProcessProperties::GetWarningsOptimization | ( | ) | const |
Definition at line 330 of file Process.cpp.
Referenced by lldb_private::Process::PrintWarningOptimization().
bool ProcessProperties::GetWarningsUnsupportedLanguage | ( | ) | const |
Definition at line 336 of file Process.cpp.
Referenced by lldb_private::Process::PrintWarningUnsupportedLanguage().
void ProcessProperties::SetDetachKeepsStopped | ( | bool | keep_stopped | ) |
Definition at line 325 of file Process.cpp.
References lldb_private::Properties::SetPropertyAtIndex().
void ProcessProperties::SetDisableLangRuntimeUnwindPlans | ( | bool | disable | ) |
Definition at line 313 of file Process.cpp.
References lldb_private::Process::Flush(), m_process, and lldb_private::Properties::SetPropertyAtIndex().
void ProcessProperties::SetExtraStartupCommands | ( | const Args & | args | ) |
Definition at line 237 of file Process.cpp.
References lldb_private::Properties::m_collection_sp.
void ProcessProperties::SetHighmemVirtualAddressableBits | ( | uint32_t | bits | ) |
Definition at line 264 of file Process.cpp.
References lldb_private::bits(), and lldb_private::Properties::SetPropertyAtIndex().
void ProcessProperties::SetIgnoreBreakpointsInExpressions | ( | bool | ignore | ) |
Definition at line 280 of file Process.cpp.
References lldb_private::Properties::SetPropertyAtIndex().
void ProcessProperties::SetOSPluginReportsAllThreads | ( | bool | does_report | ) |
Definition at line 382 of file Process.cpp.
References ePropertyExperimental, lldb_private::Property::GetValue(), lldb_private::Properties::m_collection_sp, and lldb_private::OptionValueProperties::SetPropertyAtIndex().
void ProcessProperties::SetPythonOSPluginPath | ( | const FileSpec & | file | ) |
Definition at line 269 of file Process.cpp.
References lldb_private::Properties::SetPropertyAtIndex().
void ProcessProperties::SetStopOnSharedLibraryEvents | ( | bool | stop | ) |
Definition at line 302 of file Process.cpp.
References lldb_private::Properties::SetPropertyAtIndex().
Referenced by lldb_private::DynamicLoader::SetStopWhenImagesChange().
void ProcessProperties::SetUnwindOnErrorInExpressions | ( | bool | ignore | ) |
Definition at line 291 of file Process.cpp.
References lldb_private::Properties::SetPropertyAtIndex().
void ProcessProperties::SetVirtualAddressableBits | ( | uint32_t | bits | ) |
Definition at line 253 of file Process.cpp.
References lldb_private::bits(), and lldb_private::Properties::SetPropertyAtIndex().
|
protected |
Definition at line 115 of file Process.h.
Referenced by ProcessProperties().
|
protected |
Definition at line 114 of file Process.h.
Referenced by lldb_private::process_gdb_remote::ProcessGDBRemote::LoadModules(), lldb_private::process_gdb_remote::ProcessGDBRemote::MaybeLoadExecutableModule(), lldb_private::Process::AttachCompletionHandler::PerformAction(), ProcessProperties(), SetDisableLangRuntimeUnwindPlans(), and lldb_private::ScriptedProcess::UpdateQueueListIfNeeded().