[lldb] Fix NSURL data formatter truncation issue
authorDavide Italiano <ditaliano@apple.com>
Wed, 20 Nov 2019 20:27:26 +0000 (12:27 -0800)
committerDavide Italiano <ditaliano@apple.com>
Wed, 20 Nov 2019 20:28:14 +0000 (12:28 -0800)
commit6f4398d1b9950d48ead91b2b550792f2bbe4778e
tree79d7b88deec7abe22193b6df737b3f5349999f01
parent923afb4a61708cd6d5c6786c81f55a682ec46497
[lldb] Fix NSURL data formatter truncation issue

Remove hardcoded string prefix length assumption causing issues when
concatenating summary for NSURL in NSURLSummaryProvider. Provider relies
on concatenation of NSStringProvider results for summary, and while the
strings are prefixed with '@' in Objective-C, that is not the case in
Swift causing part of the description to be truncated.

This will be tested in the downstream fork.

Patch by Martin Svensson!
lldb/source/Plugins/Language/ObjC/Cocoa.cpp