summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectFrame.cpp
diff options
context:
space:
mode:
authorEnrico Granata <granata.enrico@gmail.com>2011-08-12 16:42:31 +0000
committerEnrico Granata <granata.enrico@gmail.com>2011-08-12 16:42:31 +0000
commit61a80ba6c3dc8dbc64bb25ae4036b52e42ada0a8 (patch)
treeae03f865ca6d143b38c161222a890311ea2cfa69 /lldb/source/Commands/CommandObjectFrame.cpp
parentb4d3733fca1bdf87e79025fb299f3d459b2c4256 (diff)
downloadbcm5719-llvm-61a80ba6c3dc8dbc64bb25ae4036b52e42ada0a8.tar.gz
bcm5719-llvm-61a80ba6c3dc8dbc64bb25ae4036b52e42ada0a8.zip
Giving a warning to the user the first time children are truncated by the new cap setting
llvm-svn: 137462
Diffstat (limited to 'lldb/source/Commands/CommandObjectFrame.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectFrame.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectFrame.cpp b/lldb/source/Commands/CommandObjectFrame.cpp
index d03d3bb18a0..a05663805b8 100644
--- a/lldb/source/Commands/CommandObjectFrame.cpp
+++ b/lldb/source/Commands/CommandObjectFrame.cpp
@@ -660,6 +660,14 @@ public:
result.SetStatus (eReturnStatusSuccessFinishResult);
}
}
+
+ if (m_interpreter.TruncationWarningNecessary())
+ {
+ result.GetOutputStream().Printf(m_interpreter.TruncationWarningText(),
+ m_cmd_name.c_str());
+ m_interpreter.TruncationWarningGiven();
+ }
+
return result.Succeeded();
}
protected:
OpenPOWER on IntegriCloud