summaryrefslogtreecommitdiffstats
path: root/lldb/source/DataFormatters/StringPrinter.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2014-11-18 22:54:45 +0000
committerEnrico Granata <egranata@apple.com>2014-11-18 22:54:45 +0000
commit34042212b2b9b302899029a9e8b78cb55d7fde05 (patch)
tree7cdf2f0815cd5545c3bce5be64de3a580880dcc9 /lldb/source/DataFormatters/StringPrinter.cpp
parent489af08f67c5a7c29cdb1a5a61ab8244138fe756 (diff)
downloadbcm5719-llvm-34042212b2b9b302899029a9e8b78cb55d7fde05.tar.gz
bcm5719-llvm-34042212b2b9b302899029a9e8b78cb55d7fde05.zip
Add the ability for the NSString and libc++ std::string formatters to retrieve uncapped data
llvm-svn: 222277
Diffstat (limited to 'lldb/source/DataFormatters/StringPrinter.cpp')
-rw-r--r--lldb/source/DataFormatters/StringPrinter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/DataFormatters/StringPrinter.cpp b/lldb/source/DataFormatters/StringPrinter.cpp
index 52d03fc7379..ec1bf558455 100644
--- a/lldb/source/DataFormatters/StringPrinter.cpp
+++ b/lldb/source/DataFormatters/StringPrinter.cpp
@@ -454,8 +454,10 @@ ReadStringAndDumpToStream<StringElementType::ASCII> (ReadStringAndDumpToStreamOp
if (options.GetSourceSize() == 0)
size = process_sp->GetTarget().GetMaximumSizeOfStringSummary();
- else
+ else if (!options.GetIgnoreMaxLength())
size = std::min(options.GetSourceSize(),process_sp->GetTarget().GetMaximumSizeOfStringSummary());
+ else
+ size = options.GetSourceSize();
lldb::DataBufferSP buffer_sp(new DataBufferHeap(size,0));
OpenPOWER on IntegriCloud