LLDB mainline
Public Member Functions | Private Member Functions | Private Attributes | List of all members
lldb_private::TargetProperties Class Reference

#include <Target.h>

Inheritance diagram for lldb_private::TargetProperties:
Inheritance graph
[legend]

Public Member Functions

 TargetProperties (Target *target)
 
 ~TargetProperties () override
 
ArchSpec GetDefaultArchitecture () const
 
void SetDefaultArchitecture (const ArchSpec &arch)
 
bool GetMoveToNearestCode () const
 
lldb::DynamicValueType GetPreferDynamicValue () const
 
bool SetPreferDynamicValue (lldb::DynamicValueType d)
 
bool GetPreloadSymbols () const
 
void SetPreloadSymbols (bool b)
 
bool GetDisableASLR () const
 
void SetDisableASLR (bool b)
 
bool GetInheritTCC () const
 
void SetInheritTCC (bool b)
 
bool GetDetachOnError () const
 
void SetDetachOnError (bool b)
 
bool GetDisableSTDIO () const
 
void SetDisableSTDIO (bool b)
 
const char * GetDisassemblyFlavor () const
 
InlineStrategy GetInlineStrategy () const
 
llvm::StringRef GetArg0 () const
 
void SetArg0 (llvm::StringRef arg)
 
bool GetRunArguments (Args &args) const
 
void SetRunArguments (const Args &args)
 
Environment GetEnvironment () const
 
Environment GetInheritedEnvironment () const
 
Environment GetTargetEnvironment () const
 
void SetEnvironment (Environment env)
 
bool GetSkipPrologue () const
 
PathMappingListGetSourcePathMap () const
 
bool GetAutoSourceMapRelative () const
 
FileSpecList GetExecutableSearchPaths ()
 
void AppendExecutableSearchPaths (const FileSpec &)
 
FileSpecList GetDebugFileSearchPaths ()
 
FileSpecList GetClangModuleSearchPaths ()
 
bool GetEnableAutoImportClangModules () const
 
ImportStdModule GetImportStdModule () const
 
DynamicClassInfoHelper GetDynamicClassInfoHelper () const
 
bool GetEnableAutoApplyFixIts () const
 
uint64_t GetNumberOfRetriesWithFixits () const
 
bool GetEnableNotifyAboutFixIts () const
 
FileSpec GetSaveJITObjectsDir () const
 
bool GetEnableSyntheticValue () const
 
bool ShowHexVariableValuesWithLeadingZeroes () const
 
uint32_t GetMaxZeroPaddingInFloatFormat () const
 
uint32_t GetMaximumNumberOfChildrenToDisplay () const
 
std::pair< uint32_t, bool > GetMaximumDepthOfChildrenToDisplay () const
 Get the max depth value, augmented with a bool to indicate whether the depth is the default.
 
uint32_t GetMaximumSizeOfStringSummary () const
 
uint32_t GetMaximumMemReadSize () const
 
FileSpec GetStandardInputPath () const
 
FileSpec GetStandardErrorPath () const
 
FileSpec GetStandardOutputPath () const
 
void SetStandardInputPath (llvm::StringRef path)
 
void SetStandardOutputPath (llvm::StringRef path)
 
void SetStandardErrorPath (llvm::StringRef path)
 
void SetStandardInputPath (const char *path)=delete
 
void SetStandardOutputPath (const char *path)=delete
 
void SetStandardErrorPath (const char *path)=delete
 
bool GetBreakpointsConsultPlatformAvoidList ()
 
lldb::LanguageType GetLanguage () const
 
llvm::StringRef GetExpressionPrefixContents ()
 
uint64_t GetExprErrorLimit () const
 
uint64_t GetExprAllocAddress () const
 
uint64_t GetExprAllocSize () const
 
uint64_t GetExprAllocAlign () const
 
bool GetUseHexImmediates () const
 
bool GetUseFastStepping () const
 
bool GetDisplayExpressionsInCrashlogs () const
 
LoadScriptFromSymFile GetLoadScriptFromSymbolFile () const
 
LoadCWDlldbinitFile GetLoadCWDlldbinitFile () const
 
Disassembler::HexImmediateStyle GetHexImmediateStyle () const
 
MemoryModuleLoadLevel GetMemoryModuleLoadLevel () const
 
bool GetUserSpecifiedTrapHandlerNames (Args &args) const
 
void SetUserSpecifiedTrapHandlerNames (const Args &args)
 
bool GetDisplayRuntimeSupportValues () const
 
void SetDisplayRuntimeSupportValues (bool b)
 
bool GetDisplayRecognizedArguments () const
 
void SetDisplayRecognizedArguments (bool b)
 
const ProcessLaunchInfoGetProcessLaunchInfo () const
 
void SetProcessLaunchInfo (const ProcessLaunchInfo &launch_info)
 
bool GetInjectLocalVariables (ExecutionContext *exe_ctx) const
 
void SetRequireHardwareBreakpoints (bool b)
 
bool GetRequireHardwareBreakpoints () const
 
bool GetAutoInstallMainExecutable () const
 
void UpdateLaunchInfoFromProperties ()
 
void SetDebugUtilityExpression (bool debug)
 
bool GetDebugUtilityExpression () 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 >
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
 

Private Member Functions

std::optional< bool > GetExperimentalPropertyValue (size_t prop_idx, ExecutionContext *exe_ctx=nullptr) const
 
void Arg0ValueChangedCallback ()
 
void RunArgsValueChangedCallback ()
 
void EnvVarsValueChangedCallback ()
 
void InputPathValueChangedCallback ()
 
void OutputPathValueChangedCallback ()
 
void ErrorPathValueChangedCallback ()
 
void DetachOnErrorValueChangedCallback ()
 
void DisableASLRValueChangedCallback ()
 
void InheritTCCValueChangedCallback ()
 
void DisableSTDIOValueChangedCallback ()
 
void CheckJITObjectsDir ()
 
Environment ComputeEnvironment () const
 

Private Attributes

ProcessLaunchInfo m_launch_info
 
std::unique_ptr< TargetExperimentalPropertiesm_experimental_properties_up
 
Targetm_target
 

Additional Inherited Members

- Static Public Member Functions inherited from lldb_private::Properties
static llvm::StringRef GetExperimentalSettingsName ()
 
static bool IsSettingExperimental (llvm::StringRef setting)
 
- Protected Attributes inherited from lldb_private::Properties
lldb::OptionValuePropertiesSP m_collection_sp
 

Detailed Description

Definition at line 80 of file Target.h.

Constructor & Destructor Documentation

◆ TargetProperties()

TargetProperties::TargetProperties ( Target target)

◆ ~TargetProperties()

TargetProperties::~TargetProperties ( )
overridedefault

Member Function Documentation

◆ AppendExecutableSearchPaths()

void TargetProperties::AppendExecutableSearchPaths ( const FileSpec dir)

◆ Arg0ValueChangedCallback()

void TargetProperties::Arg0ValueChangedCallback ( )
private

◆ CheckJITObjectsDir()

void TargetProperties::CheckJITObjectsDir ( )
private

◆ ComputeEnvironment()

Environment TargetProperties::ComputeEnvironment ( ) const
private

◆ DetachOnErrorValueChangedCallback()

void TargetProperties::DetachOnErrorValueChangedCallback ( )
private

◆ DisableASLRValueChangedCallback()

void TargetProperties::DisableASLRValueChangedCallback ( )
private

◆ DisableSTDIOValueChangedCallback()

void TargetProperties::DisableSTDIOValueChangedCallback ( )
private

◆ EnvVarsValueChangedCallback()

void TargetProperties::EnvVarsValueChangedCallback ( )
private

◆ ErrorPathValueChangedCallback()

void TargetProperties::ErrorPathValueChangedCallback ( )
private

◆ GetArg0()

llvm::StringRef TargetProperties::GetArg0 ( ) const

Definition at line 4355 of file Target.cpp.

Referenced by Arg0ValueChangedCallback(), and CommandObjectProcessLaunch::DoExecute().

◆ GetAutoInstallMainExecutable()

bool TargetProperties::GetAutoInstallMainExecutable ( ) const

Definition at line 4819 of file Target.cpp.

Referenced by lldb_private::Target::Install().

◆ GetAutoSourceMapRelative()

bool TargetProperties::GetAutoSourceMapRelative ( ) const

◆ GetBreakpointsConsultPlatformAvoidList()

bool TargetProperties::GetBreakpointsConsultPlatformAvoidList ( )

◆ GetClangModuleSearchPaths()

FileSpecList TargetProperties::GetClangModuleSearchPaths ( )

Definition at line 4493 of file Target.cpp.

Referenced by lldb_private::ClangModulesDeclVendor::Create().

◆ GetDebugFileSearchPaths()

FileSpecList TargetProperties::GetDebugFileSearchPaths ( )

Definition at line 4488 of file Target.cpp.

Referenced by lldb_private::Target::GetDefaultDebugFileSearchPaths().

◆ GetDebugUtilityExpression()

bool TargetProperties::GetDebugUtilityExpression ( ) const

Definition at line 4882 of file Target.cpp.

Referenced by lldb_private::FunctionCaller::ExecuteFunction().

◆ GetDefaultArchitecture()

ArchSpec TargetProperties::GetDefaultArchitecture ( ) const

Definition at line 4248 of file Target.cpp.

Referenced by lldb_private::Target::GetDefaultArchitecture().

◆ GetDetachOnError()

bool TargetProperties::GetDetachOnError ( ) const

◆ GetDisableASLR()

bool TargetProperties::GetDisableASLR ( ) const

◆ GetDisableSTDIO()

bool TargetProperties::GetDisableSTDIO ( ) const

◆ GetDisassemblyFlavor()

const char * TargetProperties::GetDisassemblyFlavor ( ) const

◆ GetDisplayExpressionsInCrashlogs()

bool TargetProperties::GetDisplayExpressionsInCrashlogs ( ) const

Definition at line 4710 of file Target.cpp.

Referenced by lldb::SBFrame::EvaluateExpression().

◆ GetDisplayRecognizedArguments()

bool TargetProperties::GetDisplayRecognizedArguments ( ) const

Definition at line 4765 of file Target.cpp.

◆ GetDisplayRuntimeSupportValues()

bool TargetProperties::GetDisplayRuntimeSupportValues ( ) const

Definition at line 4754 of file Target.cpp.

Referenced by lldb::SBFrame::GetVariables().

◆ GetDynamicClassInfoHelper()

DynamicClassInfoHelper TargetProperties::GetDynamicClassInfoHelper ( ) const

◆ GetEnableAutoApplyFixIts()

bool TargetProperties::GetEnableAutoApplyFixIts ( ) const

◆ GetEnableAutoImportClangModules()

bool TargetProperties::GetEnableAutoImportClangModules ( ) const

◆ GetEnableNotifyAboutFixIts()

bool TargetProperties::GetEnableNotifyAboutFixIts ( ) const

◆ GetEnableSyntheticValue()

bool TargetProperties::GetEnableSyntheticValue ( ) const

Definition at line 4574 of file Target.cpp.

◆ GetEnvironment()

Environment TargetProperties::GetEnvironment ( ) const

◆ GetExecutableSearchPaths()

FileSpecList TargetProperties::GetExecutableSearchPaths ( )

◆ GetExperimentalPropertyValue()

std::optional< bool > TargetProperties::GetExperimentalPropertyValue ( size_t  prop_idx,
ExecutionContext exe_ctx = nullptr 
) const
private

◆ GetExprAllocAddress()

uint64_t TargetProperties::GetExprAllocAddress ( ) const

Definition at line 4674 of file Target.cpp.

◆ GetExprAllocAlign()

uint64_t TargetProperties::GetExprAllocAlign ( ) const

Definition at line 4686 of file Target.cpp.

◆ GetExprAllocSize()

uint64_t TargetProperties::GetExprAllocSize ( ) const

Definition at line 4680 of file Target.cpp.

◆ GetExprErrorLimit()

uint64_t TargetProperties::GetExprErrorLimit ( ) const

Definition at line 4668 of file Target.cpp.

◆ GetExpressionPrefixContents()

llvm::StringRef TargetProperties::GetExpressionPrefixContents ( )

◆ GetHexImmediateStyle()

Disassembler::HexImmediateStyle TargetProperties::GetHexImmediateStyle ( ) const

Definition at line 4730 of file Target.cpp.

Referenced by InstructionLLVMC::CalculateMnemonicOperandsAndComment().

◆ GetImportStdModule()

ImportStdModule TargetProperties::GetImportStdModule ( ) const

◆ GetInheritedEnvironment()

Environment TargetProperties::GetInheritedEnvironment ( ) const

◆ GetInheritTCC()

bool TargetProperties::GetInheritTCC ( ) const

◆ GetInjectLocalVariables()

bool TargetProperties::GetInjectLocalVariables ( ExecutionContext exe_ctx) const

◆ GetInlineStrategy()

InlineStrategy TargetProperties::GetInlineStrategy ( ) const

Definition at line 4348 of file Target.cpp.

Referenced by lldb_private::Target::CreateBreakpoint().

◆ GetLanguage()

LanguageType TargetProperties::GetLanguage ( ) const

◆ GetLoadCWDlldbinitFile()

LoadCWDlldbinitFile TargetProperties::GetLoadCWDlldbinitFile ( ) const

Definition at line 4723 of file Target.cpp.

Referenced by lldb_private::CommandInterpreter::SourceInitFileCwd().

◆ GetLoadScriptFromSymbolFile()

LoadScriptFromSymFile TargetProperties::GetLoadScriptFromSymbolFile ( ) const

Definition at line 4716 of file Target.cpp.

◆ GetMaximumDepthOfChildrenToDisplay()

std::pair< uint32_t, bool > TargetProperties::GetMaximumDepthOfChildrenToDisplay ( ) const

Get the max depth value, augmented with a bool to indicate whether the depth is the default.

When the user has customized the max depth, the bool will be false.

Returns
the max depth, and true if the max depth is the system default, otherwise false.

Definition at line 4599 of file Target.cpp.

References lldb_private::Properties::m_collection_sp.

◆ GetMaximumMemReadSize()

uint32_t TargetProperties::GetMaximumMemReadSize ( ) const

Definition at line 4613 of file Target.cpp.

Referenced by CommandObjectMemoryRead::DoExecute().

◆ GetMaximumNumberOfChildrenToDisplay()

uint32_t TargetProperties::GetMaximumNumberOfChildrenToDisplay ( ) const

Definition at line 4592 of file Target.cpp.

◆ GetMaximumSizeOfStringSummary()

uint32_t TargetProperties::GetMaximumSizeOfStringSummary ( ) const

◆ GetMaxZeroPaddingInFloatFormat()

uint32_t TargetProperties::GetMaxZeroPaddingInFloatFormat ( ) const

Definition at line 4586 of file Target.cpp.

◆ GetMemoryModuleLoadLevel()

MemoryModuleLoadLevel TargetProperties::GetMemoryModuleLoadLevel ( ) const

Definition at line 4737 of file Target.cpp.

Referenced by ObjectFileMachO::ParseSymtab().

◆ GetMoveToNearestCode()

bool TargetProperties::GetMoveToNearestCode ( ) const

◆ GetNumberOfRetriesWithFixits()

uint64_t TargetProperties::GetNumberOfRetriesWithFixits ( ) const

◆ GetPreferDynamicValue()

lldb::DynamicValueType TargetProperties::GetPreferDynamicValue ( ) const

Definition at line 4264 of file Target.cpp.

Referenced by lldb_private::Process::UpdateThreadListIfNeeded().

◆ GetPreloadSymbols()

bool TargetProperties::GetPreloadSymbols ( ) const

◆ GetProcessLaunchInfo()

const ProcessLaunchInfo & TargetProperties::GetProcessLaunchInfo ( ) const

◆ GetRequireHardwareBreakpoints()

bool TargetProperties::GetRequireHardwareBreakpoints ( ) const

Definition at line 4808 of file Target.cpp.

Referenced by lldb_private::Target::CreateBreakpoint().

◆ GetRunArguments()

bool TargetProperties::GetRunArguments ( Args args) const

◆ GetSaveJITObjectsDir()

FileSpec TargetProperties::GetSaveJITObjectsDir ( ) const

Definition at line 4536 of file Target.cpp.

Referenced by CheckJITObjectsDir().

◆ GetSkipPrologue()

bool TargetProperties::GetSkipPrologue ( ) const

◆ GetSourcePathMap()

PathMappingList & TargetProperties::GetSourcePathMap ( ) const

◆ GetStandardErrorPath()

FileSpec TargetProperties::GetStandardErrorPath ( ) const

◆ GetStandardInputPath()

FileSpec TargetProperties::GetStandardInputPath ( ) const

◆ GetStandardOutputPath()

FileSpec TargetProperties::GetStandardOutputPath ( ) const

◆ GetTargetEnvironment()

Environment TargetProperties::GetTargetEnvironment ( ) const

Definition at line 4438 of file Target.cpp.

References lldb_private::Properties::m_collection_sp.

◆ GetUseFastStepping()

bool TargetProperties::GetUseFastStepping ( ) const

◆ GetUseHexImmediates()

bool TargetProperties::GetUseHexImmediates ( ) const

Definition at line 4698 of file Target.cpp.

Referenced by InstructionLLVMC::CalculateMnemonicOperandsAndComment().

◆ GetUserSpecifiedTrapHandlerNames()

bool TargetProperties::GetUserSpecifiedTrapHandlerNames ( Args args) const

◆ InheritTCCValueChangedCallback()

void TargetProperties::InheritTCCValueChangedCallback ( )
private

◆ InputPathValueChangedCallback()

void TargetProperties::InputPathValueChangedCallback ( )
private

◆ OutputPathValueChangedCallback()

void TargetProperties::OutputPathValueChangedCallback ( )
private

◆ RunArgsValueChangedCallback()

void TargetProperties::RunArgsValueChangedCallback ( )
private

◆ SetArg0()

void TargetProperties::SetArg0 ( llvm::StringRef  arg)

◆ SetDebugUtilityExpression()

void TargetProperties::SetDebugUtilityExpression ( bool  debug)

Definition at line 4888 of file Target.cpp.

References lldb_private::Properties::SetPropertyAtIndex().

◆ SetDefaultArchitecture()

void TargetProperties::SetDefaultArchitecture ( const ArchSpec arch)

◆ SetDetachOnError()

void TargetProperties::SetDetachOnError ( bool  b)

Definition at line 4319 of file Target.cpp.

References lldb_private::Properties::SetPropertyAtIndex().

Referenced by SetProcessLaunchInfo().

◆ SetDisableASLR()

void TargetProperties::SetDisableASLR ( bool  b)

Definition at line 4297 of file Target.cpp.

References lldb_private::Properties::SetPropertyAtIndex().

Referenced by SetProcessLaunchInfo().

◆ SetDisableSTDIO()

void TargetProperties::SetDisableSTDIO ( bool  b)

Definition at line 4330 of file Target.cpp.

References lldb_private::Properties::SetPropertyAtIndex().

Referenced by SetProcessLaunchInfo().

◆ SetDisplayRecognizedArguments()

void TargetProperties::SetDisplayRecognizedArguments ( bool  b)

Definition at line 4771 of file Target.cpp.

References lldb_private::Properties::SetPropertyAtIndex().

◆ SetDisplayRuntimeSupportValues()

void TargetProperties::SetDisplayRuntimeSupportValues ( bool  b)

Definition at line 4760 of file Target.cpp.

References lldb_private::Properties::SetPropertyAtIndex().

◆ SetEnvironment()

void TargetProperties::SetEnvironment ( Environment  env)

Definition at line 4449 of file Target.cpp.

References lldb_private::Properties::m_collection_sp.

Referenced by SetProcessLaunchInfo().

◆ SetInheritTCC()

void TargetProperties::SetInheritTCC ( bool  b)

Definition at line 4308 of file Target.cpp.

References lldb_private::Properties::SetPropertyAtIndex().

Referenced by SetProcessLaunchInfo().

◆ SetPreferDynamicValue()

bool TargetProperties::SetPreferDynamicValue ( lldb::DynamicValueType  d)

◆ SetPreloadSymbols()

void TargetProperties::SetPreloadSymbols ( bool  b)

Definition at line 4286 of file Target.cpp.

References lldb_private::Properties::SetPropertyAtIndex().

◆ SetProcessLaunchInfo()

void TargetProperties::SetProcessLaunchInfo ( const ProcessLaunchInfo launch_info)

◆ SetRequireHardwareBreakpoints()

void TargetProperties::SetRequireHardwareBreakpoints ( bool  b)

Definition at line 4814 of file Target.cpp.

References lldb_private::Properties::m_collection_sp.

◆ SetRunArguments()

void TargetProperties::SetRunArguments ( const Args args)

◆ SetStandardErrorPath() [1/2]

void lldb_private::TargetProperties::SetStandardErrorPath ( const char *  path)
delete

◆ SetStandardErrorPath() [2/2]

void TargetProperties::SetStandardErrorPath ( llvm::StringRef  path)

Definition at line 4644 of file Target.cpp.

References lldb_private::Properties::SetPropertyAtIndex().

Referenced by SetProcessLaunchInfo().

◆ SetStandardInputPath() [1/2]

void lldb_private::TargetProperties::SetStandardInputPath ( const char *  path)
delete

◆ SetStandardInputPath() [2/2]

void TargetProperties::SetStandardInputPath ( llvm::StringRef  path)

Definition at line 4624 of file Target.cpp.

References lldb_private::Properties::SetPropertyAtIndex().

Referenced by SetProcessLaunchInfo().

◆ SetStandardOutputPath() [1/2]

void lldb_private::TargetProperties::SetStandardOutputPath ( const char *  path)
delete

◆ SetStandardOutputPath() [2/2]

void TargetProperties::SetStandardOutputPath ( llvm::StringRef  path)

Definition at line 4634 of file Target.cpp.

References lldb_private::Properties::SetPropertyAtIndex().

Referenced by SetProcessLaunchInfo().

◆ SetUserSpecifiedTrapHandlerNames()

void TargetProperties::SetUserSpecifiedTrapHandlerNames ( const Args args)

Definition at line 4749 of file Target.cpp.

References lldb_private::Properties::m_collection_sp.

◆ ShowHexVariableValuesWithLeadingZeroes()

bool TargetProperties::ShowHexVariableValuesWithLeadingZeroes ( ) const

Definition at line 4580 of file Target.cpp.

Referenced by lldb_private::DumpDataExtractor().

◆ UpdateLaunchInfoFromProperties()

void TargetProperties::UpdateLaunchInfoFromProperties ( )

Member Data Documentation

◆ m_experimental_properties_up

std::unique_ptr<TargetExperimentalProperties> lldb_private::TargetProperties::m_experimental_properties_up
private

Definition at line 283 of file Target.h.

Referenced by TargetProperties().

◆ m_launch_info

ProcessLaunchInfo lldb_private::TargetProperties::m_launch_info
private

◆ m_target

Target* lldb_private::TargetProperties::m_target
private

The documentation for this class was generated from the following files: