LLDB  mainline
Classes | Static Public Member Functions | Static Protected Member Functions | List of all members
lldb_private::FormatEntity Class Reference

#include <FormatEntity.h>

Classes

struct  Entry
 

Static Public Member Functions

static bool Format (const Entry &entry, Stream &s, const SymbolContext *sc, const ExecutionContext *exe_ctx, const Address *addr, ValueObject *valobj, bool function_changed, bool initial_function)
 
static bool FormatStringRef (const llvm::StringRef &format, Stream &s, const SymbolContext *sc, const ExecutionContext *exe_ctx, const Address *addr, ValueObject *valobj, bool function_changed, bool initial_function)
 
static bool FormatCString (const char *format, Stream &s, const SymbolContext *sc, const ExecutionContext *exe_ctx, const Address *addr, ValueObject *valobj, bool function_changed, bool initial_function)
 
static Status Parse (const llvm::StringRef &format, Entry &entry)
 
static Status ExtractVariableInfo (llvm::StringRef &format_str, llvm::StringRef &variable_name, llvm::StringRef &variable_format)
 
static size_t AutoComplete (lldb_private::CompletionRequest &request)
 
static bool FormatFileSpec (const FileSpec &file, Stream &s, llvm::StringRef elements, llvm::StringRef element_format)
 

Static Protected Member Functions

static Status ParseInternal (llvm::StringRef &format, Entry &parent_entry, uint32_t depth)
 

Detailed Description

Definition at line 47 of file FormatEntity.h.

Member Function Documentation

◆ AutoComplete()

size_t FormatEntity::AutoComplete ( lldb_private::CompletionRequest request)
static

◆ ExtractVariableInfo()

Status FormatEntity::ExtractVariableInfo ( llvm::StringRef &  format_str,
llvm::StringRef &  variable_name,
llvm::StringRef &  variable_format 
)
static

Definition at line 2283 of file FormatEntity.cpp.

References lldb_private::Status::SetErrorStringWithFormat().

Referenced by ParseInternal().

◆ Format()

bool FormatEntity::Format ( const Entry entry,
Stream s,
const SymbolContext sc,
const ExecutionContext exe_ctx,
const Address addr,
ValueObject valobj,
bool  function_changed,
bool  initial_function 
)
static

Definition at line 1094 of file FormatEntity.cpp.

References lldb_private::FormatEntity::Entry::AddressFile, lldb_private::FormatEntity::Entry::AddressLoad, lldb_private::FormatEntity::Entry::AddressLoadOrFile, lldb_private::VariableList::AppendVariablesWithScope(), lldb_private::ConstString::AsCString(), lldb_private::SymbolContext::block, lldb_private::ExecutionContextScope::CalculateTarget(), lldb_private::FormatEntity::Entry::children, lldb_private::LineEntry::column, lldb_private::SymbolContext::comp_unit, lldb_private::ValueObjectVariable::Create(), lldb_private::FormatEntity::Entry::CurrentPCArrow, lldb_private::FormatEntity::Entry::Dump(), DumpAddress(), DumpAddressOffsetFromFunction(), DumpFile(), DumpRegister(), DumpValue(), lldb_private::ValueObject::eAllow, lldb::eFormatDefault, lldb_private::Language::eName, lldb_private::Language::eNameWithArgs, lldb_private::Language::eNameWithNoArgs, lldb::eRegisterKindGeneric, lldb::eStructuredDataTypeDictionary, lldb::eValueTypeVariableArgument, lldb_private::FormatEntity::Entry::File, lldb_private::LineEntry::file, lldb_private::Language::FindPlugin(), lldb_private::StringSummaryFormat::FormatObject(), FormatThreadExtendedInfoRecurse(), lldb_private::FormatEntity::Entry::FrameIndex, lldb_private::FormatEntity::Entry::FrameIsArtificial, lldb_private::FormatEntity::Entry::FrameNoDebug, lldb_private::FormatEntity::Entry::FrameRegisterByName, lldb_private::FormatEntity::Entry::FrameRegisterFlags, lldb_private::FormatEntity::Entry::FrameRegisterFP, lldb_private::FormatEntity::Entry::FrameRegisterPC, lldb_private::FormatEntity::Entry::FrameRegisterSP, lldb_private::SymbolContext::function, lldb_private::FormatEntity::Entry::FunctionAddrOffset, lldb_private::FormatEntity::Entry::FunctionAddrOffsetConcrete, lldb_private::FormatEntity::Entry::FunctionChanged, lldb_private::FormatEntity::Entry::FunctionDidChange, lldb_private::FormatEntity::Entry::FunctionID, lldb_private::FormatEntity::Entry::FunctionInitial, lldb_private::FormatEntity::Entry::FunctionInitialFunction, lldb_private::FormatEntity::Entry::FunctionIsOptimized, lldb_private::FormatEntity::Entry::FunctionLineOffset, lldb_private::FormatEntity::Entry::FunctionName, lldb_private::FormatEntity::Entry::FunctionNameNoArgs, lldb_private::FormatEntity::Entry::FunctionNameWithArgs, lldb_private::FormatEntity::Entry::FunctionPCOffset, lldb_private::Target::GetArchitecture(), lldb_private::ArchSpec::GetArchitectureName(), lldb_private::AddressRange::GetBaseAddress(), lldb_private::ExecutionContext::GetBestExecutionContextScope(), lldb_private::Function::GetBlock(), lldb_private::Block::GetBlockVariableList(), lldb_private::AddressRange::GetByteSize(), lldb_private::Block::GetContainingInlinedBlock(), lldb_private::ConstString::GetCString(), lldb_private::Target::GetExecutableModulePointer(), lldb_private::StopInfo::GetExpressionVariable(), lldb_private::Thread::GetExtendedInfo(), lldb_private::Module::GetFileSpec(), lldb_private::StackFrame::GetFrameCodeAddress(), lldb_private::StackFrame::GetFrameIndex(), lldb_private::ExecutionContext::GetFramePtr(), lldb_private::Language::GetFunctionDisplayName(), lldb_private::UserID::GetID(), lldb_private::Symbol::GetID(), lldb_private::Thread::GetIndexID(), lldb_private::Block::GetInlinedFunctionInfo(), lldb_private::Function::GetIsOptimized(), lldb_private::Symbol::GetLanguage(), lldb_private::CompileUnit::GetLanguage(), lldb_private::Function::GetLanguage(), lldb_private::Symbol::GetName(), lldb_private::InlineFunctionInfo::GetName(), lldb_private::Thread::GetName(), lldb_private::Function::GetName(), lldb_private::Language::GetNameForLanguageType(), lldb_private::Symbol::GetNameNoArguments(), lldb_private::Function::GetNameNoArguments(), lldb_private::Thread::GetProcess(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Thread::GetProtocolID(), lldb_private::Thread::GetQueueName(), lldb_private::StackFrame::GetRegisterContextSP(), lldb_private::StopInfo::GetReturnValueObject(), lldb_private::VariableList::GetSize(), lldb_private::Thread::GetStopInfo(), lldb_private::StreamString::GetString(), lldb_private::Process::GetTarget(), lldb_private::ExecutionContext::GetTargetPtr(), lldb_private::ExecutionContext::GetThreadPtr(), lldb_private::VariableList::GetVariableAtIndex(), lldb_private::StackFrame::HasDebugInformation(), lldb_private::FormatEntity::Entry::InsertString, lldb_private::FormatEntity::Entry::Invalid, IsToken(), lldb_private::LineEntry::IsValid(), lldb_private::ArchSpec::IsValid(), lldb_private::Address::IsValid(), lldb_private::FormatEntity::Entry::Lang, lldb_private::LineEntry::line, lldb_private::SymbolContext::line_entry, lldb_private::FormatEntity::Entry::LineEntryColumn, lldb_private::FormatEntity::Entry::LineEntryEndAddress, lldb_private::FormatEntity::Entry::LineEntryFile, lldb_private::FormatEntity::Entry::LineEntryLineNumber, lldb_private::FormatEntity::Entry::LineEntryStartAddress, LLDB_INVALID_ADDRESS, LLDB_REGNUM_GENERIC_FLAGS, LLDB_REGNUM_GENERIC_FP, LLDB_REGNUM_GENERIC_SP, lldb_private::SymbolContext::module_sp, lldb_private::FormatEntity::Entry::ModuleFile, lldb_private::FormatEntity::Entry::number, lldb_private::FormatEntity::Entry::ParentNumber, lldb_private::FormatEntity::Entry::ParentString, pc, lldb_private::Stream::Printf(), lldb_private::FormatEntity::Entry::printf_format, lldb_private::FormatEntity::Entry::ProcessFile, lldb_private::FormatEntity::Entry::ProcessID, lldb_private::Stream::PutChar(), lldb_private::Stream::PutCString(), lldb_private::LineEntry::range, lldb_private::FormatEntity::Entry::Root, RunScriptFormatKeyword(), lldb_private::FormatEntity::Entry::Scope, lldb_private::FormatEntity::Entry::ScriptFrame, lldb_private::FormatEntity::Entry::ScriptProcess, lldb_private::FormatEntity::Entry::ScriptTarget, lldb_private::FormatEntity::Entry::ScriptThread, lldb_private::FormatEntity::Entry::ScriptVariable, lldb_private::FormatEntity::Entry::ScriptVariableSynthetic, lldb_private::Address::SetLoadAddress(), lldb_private::DataVisualization::ShouldPrintAsOneLiner(), lldb_private::Address::Slide(), lldb_private::FormatEntity::Entry::String, lldb_private::FormatEntity::Entry::string, lldb_private::SymbolContext::symbol, lldb_private::FormatEntity::Entry::TargetArch, lldb_private::FormatEntity::Entry::ThreadCompletedExpression, lldb_private::FormatEntity::Entry::ThreadID, lldb_private::FormatEntity::Entry::ThreadIndexID, lldb_private::FormatEntity::Entry::ThreadInfo, lldb_private::FormatEntity::Entry::ThreadName, lldb_private::FormatEntity::Entry::ThreadProtocolID, lldb_private::FormatEntity::Entry::ThreadQueue, lldb_private::FormatEntity::Entry::ThreadReturnValue, lldb_private::FormatEntity::Entry::ThreadStopReason, lldb_private::FormatEntity::Entry::type, lldb_private::FormatEntity::Entry::Variable, lldb_private::FormatEntity::Entry::VariableSynthetic, and lldb_private::Stream::Write().

Referenced by lldb_private::StackFrame::DumpUsingSettingsFormat(), lldb_private::Thread::DumpUsingSettingsFormat(), FormatCString(), lldb_private::Debugger::FormatDisassemblerAddress(), lldb_private::StringSummaryFormat::FormatObject(), and FormatStringRef().

◆ FormatCString()

bool FormatEntity::FormatCString ( const char *  format,
Stream s,
const SymbolContext sc,
const ExecutionContext exe_ctx,
const Address addr,
ValueObject valobj,
bool  function_changed,
bool  initial_function 
)
static

Definition at line 1077 of file FormatEntity.cpp.

References Format(), Parse(), and lldb_private::Status::Success().

◆ FormatFileSpec()

bool FormatEntity::FormatFileSpec ( const FileSpec file,
Stream s,
llvm::StringRef  elements,
llvm::StringRef  element_format 
)
static

◆ FormatStringRef()

bool FormatEntity::FormatStringRef ( const llvm::StringRef &  format,
Stream s,
const SymbolContext sc,
const ExecutionContext exe_ctx,
const Address addr,
ValueObject valobj,
bool  function_changed,
bool  initial_function 
)
static

◆ Parse()

Status FormatEntity::Parse ( const llvm::StringRef &  format,
Entry entry 
)
static

◆ ParseInternal()

Status FormatEntity::ParseInternal ( llvm::StringRef &  format,
Entry parent_entry,
uint32_t  depth 
)
staticprotected

Definition at line 1988 of file FormatEntity.cpp.

References lldb_private::FormatEntity::Entry::AppendChar(), lldb_private::FormatEntity::Entry::AppendEntry(), lldb_private::FormatEntity::Entry::AppendText(), lldb_private::FormatEntity::Entry::deref, lldb_private::ValueObject::eValueObjectRepresentationStyleChildrenCount, lldb_private::ValueObject::eValueObjectRepresentationStyleExpressionPath, lldb_private::ValueObject::eValueObjectRepresentationStyleLanguageSpecific, lldb_private::ValueObject::eValueObjectRepresentationStyleLocation, lldb_private::ValueObject::eValueObjectRepresentationStyleName, lldb_private::ValueObject::eValueObjectRepresentationStyleSummary, lldb_private::ValueObject::eValueObjectRepresentationStyleType, lldb_private::ValueObject::eValueObjectRepresentationStyleValue, ExtractVariableInfo(), lldb_private::Status::Fail(), lldb_private::FormatEntity::Entry::fmt, lldb_private::FormatManager::GetFormatFromCString(), lldb_private::FormatEntity::Entry::InsertString, lldb_private::FormatEntity::Entry::number, ParseEntry(), lldb_private::FormatEntity::Entry::printf_format, lldb_private::FormatEntity::Entry::Scope, lldb_private::Status::SetErrorString(), lldb_private::Status::SetErrorStringWithFormat(), lldb_private::FormatEntity::Entry::string, lldb_private::Status::Success(), lldb_private::FormatEntity::Entry::ThreadID, lldb_private::FormatEntity::Entry::ThreadProtocolID, lldb_private::FormatEntity::Entry::type, lldb_private::FormatEntity::Entry::Variable, and lldb_private::FormatEntity::Entry::VariableSynthetic.

Referenced by Parse().


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