49 : m_flags(flags), m_kind(kind) {}
52 const char *format_cstr)
59 if (format_cstr && format_cstr[0]) {
71 retval.assign(
"NULL ValueObject");
85 assert(valobj &&
"Must have a valid ValueObject to summarize");
94 retval.assign(std::string(s.
GetString()));
97 retval.assign(
"error: summary string parsing error");
109 Cascades() ?
"" :
" (not cascading)",
115 HideNames(
nullptr) ?
" (hide member names)" :
"");
122 m_description(description ? description :
"") {}
137 sstr.
Printf(
"%s%s%s%s%s%s%s %s",
Cascades() ?
"" :
" (not cascading)",
143 HideNames(
nullptr) ?
" (hide member names)" :
"",
149 const char *function_name,
150 const char *python_script)
152 m_python_script(), m_script_function_sp() {
167 retval.assign(
"error: no target");
172 target_sp->GetDebugger().GetScriptInterpreter();
174 if (!script_interpreter) {
175 retval.assign(
"error: no ScriptInterpreter");
186 sstr.
Printf(
"%s%s%s%s%s%s%s\n ",
Cascades() ?
"" :
" (not cascading)",
192 HideNames(
nullptr) ?
" (hide member names)" :
"");
Address & GetBaseAddress()
Get accessor for the base address of the range.
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
StackFrame * GetFramePtr() const
Returns a pointer to the frame object.
virtual bool GetScriptedSummary(const char *function_name, lldb::ValueObjectSP valobj, StructuredData::ObjectSP &callee_wrapper_sp, const TypeSummaryOptions &options, std::string &retval)
This base class provides an interface to stack frames.
const SymbolContext & GetSymbolContext(lldb::SymbolContextItem resolve_scope)
Provide a SymbolContext for this StackFrame's current pc value.
void Clear()
Clear the object state.
bool Fail() const
Test for error condition.
const char * AsCString(const char *default_error_str="unknown error") const
Get the error string associated with the current error.
llvm::StringRef GetString() const
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
size_t PutCString(llvm::StringRef cstr)
Output a C string to the stream.
Defines a symbol context baton that can be handed other debug core functions.
LineEntry line_entry
The LineEntry for a given query.
virtual bool HideNames(ValueObject *valobj) const
virtual bool DoesPrintValue(ValueObject *valobj) const
TypeSummaryImpl(Kind kind, const TypeSummaryImpl::Flags &flags)
bool SkipsPointers() const
virtual bool DoesPrintChildren(ValueObject *valobj) const
bool SkipsReferences() const
lldb::TypeSummaryCapping m_capping
lldb::LanguageType GetLanguage() const
TypeSummaryOptions & SetCapping(lldb::TypeSummaryCapping)
lldb::LanguageType m_lang
TypeSummaryOptions & SetLanguage(lldb::LanguageType)
lldb::TypeSummaryCapping GetCapping() const
bool PrintChildrenOneLiner(bool hide_names)
lldb::ValueObjectSP GetSP()
lldb::TargetSP GetTargetSP() const
const ExecutionContextRef & GetExecutionContextRef() const
A class that represents a running process on the host machine.
TypeSummaryCapping
Whether a summary should cap how much data it returns to users or not.
LanguageType
Programming language type.
std::shared_ptr< lldb_private::Target > TargetSP
AddressRange range
The section offset address range for this line entry.