HomePhabricator

[lldb] Fix NSURL data formatter truncation issue

Authored by davide on Nov 20 2019, 12:27 PM.

Description

[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!

Details

Committed
davideNov 20 2019, 12:28 PM
Differential Revision
D70393: [lldb] Fix NSURL data formatter truncation issue in Swift
Parents
rG923afb4a6170: [lldb] [test] Un-XFAIL one lldb-server test on NetBSD
Branches
Unknown
Tags
Unknown