LLDB mainline
lldb_private::FormatEntity Namespace Reference

Classes

struct  Entry

Functions

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)
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)
Status Parse (const llvm::StringRef &format, Entry &entry)
Status ExtractVariableInfo (llvm::StringRef &format_str, llvm::StringRef &variable_name, llvm::StringRef &variable_format)
void AutoComplete (lldb_private::CompletionRequest &request)
bool FormatFileSpec (const FileSpec &file, Stream &s, llvm::StringRef elements, llvm::StringRef element_format)
void PrettyPrintFunctionArguments (Stream &out_stream, VariableList const &args, ExecutionContextScope *exe_scope)
 For each variable in 'args' this function writes the variable name and it's pretty-printed value representation to 'out_stream' in following format:

Function Documentation

◆ AutoComplete()

◆ ExtractVariableInfo()

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

Definition at line 2480 of file FormatEntity.cpp.

References error(), and lldb_private::Status::FromErrorStringWithFormat().

Referenced by ParseInternal().

◆ Format()

bool lldb_private::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 )

Definition at line 1320 of file FormatEntity.cpp.

References lldb_private::FormatEntity::Entry::AddressFile, lldb_private::FormatEntity::Entry::AddressLoad, lldb_private::FormatEntity::Entry::AddressLoadOrFile, lldb_private::ConstString::AsCString(), lldb_private::SymbolContext::block, lldb_private::FormatEntity::Entry::children_stack, lldb_private::StreamString::Clear(), lldb_private::LineEntry::column, lldb_private::SymbolContext::comp_unit, lldb_private::FormatEntity::Entry::CurrentPCArrow, DumpAddressAndContent(), DumpAddressOffsetFromFunction(), DumpFile(), DumpRegister(), DumpValue(), lldb_private::Language::eName, lldb_private::Language::eNameWithNoArgs, lldb_private::Mangled::ePreferDemangled, lldb_private::Mangled::ePreferDemangledWithoutArguments, lldb_private::Mangled::ePreferMangled, lldb::eRegisterKindGeneric, error(), lldb_private::FormatEntity::Entry::EscapeCode, lldb::eStructuredDataTypeDictionary, lldb_private::FormatEntity::Entry::File, lldb_private::Language::FindPlugin(), lldb_private::Stream::Format(), FormatFunctionNameForLanguage(), FormatThreadExtendedInfoRecurse(), lldb_private::FormatEntity::Entry::FrameIndex, lldb_private::FormatEntity::Entry::FrameIsArtificial, lldb_private::FormatEntity::Entry::FrameKind, 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::FunctionBasename, lldb_private::FormatEntity::Entry::FunctionChanged, lldb_private::FormatEntity::Entry::FunctionDidChange, lldb_private::FormatEntity::Entry::FunctionFormattedArguments, lldb_private::FormatEntity::Entry::FunctionID, lldb_private::FormatEntity::Entry::FunctionInitial, lldb_private::FormatEntity::Entry::FunctionInitialFunction, lldb_private::FormatEntity::Entry::FunctionIsInlined, lldb_private::FormatEntity::Entry::FunctionIsOptimized, lldb_private::FormatEntity::Entry::FunctionLineOffset, lldb_private::FormatEntity::Entry::FunctionMangledName, lldb_private::FormatEntity::Entry::FunctionName, lldb_private::FormatEntity::Entry::FunctionNameNoArgs, lldb_private::FormatEntity::Entry::FunctionNameQualifiers, lldb_private::FormatEntity::Entry::FunctionNameWithArgs, lldb_private::FormatEntity::Entry::FunctionPCOffset, lldb_private::FormatEntity::Entry::FunctionPrefix, lldb_private::FormatEntity::Entry::FunctionQualifiers, lldb_private::FormatEntity::Entry::FunctionReturnLeft, lldb_private::FormatEntity::Entry::FunctionReturnRight, lldb_private::FormatEntity::Entry::FunctionScope, lldb_private::FormatEntity::Entry::FunctionSuffix, lldb_private::FormatEntity::Entry::FunctionTemplateArguments, lldb_private::Target::GetArchitecture(), lldb_private::ArchSpec::GetArchitectureName(), lldb_private::AddressRange::GetBaseAddress(), lldb_private::AddressRange::GetByteSize(), lldb_private::Target::GetExecutableModulePointer(), lldb_private::StopInfo::GetExpressionVariable(), lldb_private::LineEntry::GetFile(), lldb_private::Module::GetFileSpec(), lldb_private::StackFrame::GetFrameCodeAddress(), lldb_private::StackFrame::GetFrameIndex(), lldb_private::ExecutionContext::GetFramePtr(), lldb_private::Language::GetFunctionDisplayName(), lldb_private::Process::GetID(), lldb_private::Symbol::GetID(), lldb_private::UserID::GetID(), lldb_private::Block::GetInlinedFunctionInfo(), lldb_private::Function::GetIsOptimized(), lldb_private::CompileUnit::GetLanguage(), lldb_private::Function::GetLanguage(), lldb_private::Symbol::GetLanguage(), lldb_private::Mangled::GetName(), lldb_private::Language::GetNameForLanguageType(), lldb_private::SymbolContext::GetPossiblyInlinedFunctionName(), lldb_private::CompileUnit::GetPrimaryFile(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::StackFrame::GetRegisterContextSP(), lldb_private::StopInfo::GetReturnValueObject(), lldb_private::StreamString::GetString(), lldb_private::Process::GetTarget(), lldb_private::Target::GetTargetFromContexts(), lldb_private::ExecutionContext::GetTargetPtr(), lldb_private::ExecutionContext::GetThreadPtr(), lldb_private::ArchSpec::GetTriple(), lldb_private::Debugger::GetUseColor(), lldb_private::Language::HandleFrameFormatVariable(), HandleFunctionNameWithArgs(), lldb_private::StackFrame::HasDebugInformation(), lldb_private::FormatEntity::Entry::Invalid, lldb_private::StackFrame::IsSynthetic(), lldb_private::Address::IsValid(), lldb_private::ArchSpec::IsValid(), lldb_private::LineEntry::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::FormatEntity::Entry::ProgressCount, lldb_private::FormatEntity::Entry::ProgressMessage, 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::FormatEntity::Entry::Separator, 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::TargetFile, 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::ThreadStopReasonRaw, lldb_private::toString(), lldb_private::FormatEntity::Entry::type, UINT64_MAX, lldb_private::FormatEntity::Entry::Variable, lldb_private::FormatEntity::Entry::VariableSynthetic, and lldb_private::Stream::Write().

Referenced by lldb_private::StackFrame::DumpUsingFormat(), lldb_private::Thread::DumpUsingFormat(), lldb_private::Debugger::FormatDisassemblerAddress(), FormatFunctionNameForLanguage(), lldb_private::StringSummaryFormat::FormatObject(), FormatStringRef(), and lldb_private::Statusline::Redraw().

◆ FormatFileSpec()

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

◆ FormatStringRef()

bool lldb_private::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 )

Definition at line 1303 of file FormatEntity.cpp.

References error(), Format(), and Parse().

Referenced by lldb_private::formatters::ContainerSizeSummaryProvider(), and DumpValue().

◆ Parse()

◆ PrettyPrintFunctionArguments()