aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectFrame.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2012-08-09 22:02:51 +0000
committerEnrico Granata <egranata@apple.com>2012-08-09 22:02:51 +0000
commit17b117491141385fdb27bcc68f1156900998c459 (patch)
tree6701a2d51e30d890fa85a21669a534edeb2aab59 /lldb/source/Commands/CommandObjectFrame.cpp
parentd82f647deed120dec7d4b640178f6b3807a3b258 (diff)
downloadllvm-17b117491141385fdb27bcc68f1156900998c459.zip
llvm-17b117491141385fdb27bcc68f1156900998c459.tar.gz
llvm-17b117491141385fdb27bcc68f1156900998c459.tar.bz2
<rdar://problem/11578397> Adding a new --summary-string option for the frame variable command which allows the user to provide a summary string with which he wants to display the variables without having to make a named summary first
llvm-svn: 161623
Diffstat (limited to 'lldb/source/Commands/CommandObjectFrame.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectFrame.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectFrame.cpp b/lldb/source/Commands/CommandObjectFrame.cpp
index 4a2663d..ccbd974 100644
--- a/lldb/source/Commands/CommandObjectFrame.cpp
+++ b/lldb/source/Commands/CommandObjectFrame.cpp
@@ -394,8 +394,10 @@ protected:
size_t idx;
TypeSummaryImplSP summary_format_sp;
- if (!m_option_variable.summary.empty())
- DataVisualization::NamedSummaryFormats::GetSummaryFormat(ConstString(m_option_variable.summary.c_str()), summary_format_sp);
+ if (!m_option_variable.summary.IsCurrentValueEmpty())
+ DataVisualization::NamedSummaryFormats::GetSummaryFormat(ConstString(m_option_variable.summary.GetCurrentValue()), summary_format_sp);
+ else if (!m_option_variable.summary_string.IsCurrentValueEmpty())
+ summary_format_sp.reset(new StringSummaryFormat(TypeSummaryImpl::Flags(),m_option_variable.summary_string.GetCurrentValue()));
ValueObject::DumpValueObjectOptions options;