Rewrite the GetFileInSDK methods in PlatformRemoteiOS,
authorJason Molenda <jmolenda@apple.com>
Wed, 24 Aug 2016 23:46:48 +0000 (23:46 +0000)
committerJason Molenda <jmolenda@apple.com>
Wed, 24 Aug 2016 23:46:48 +0000 (23:46 +0000)
commit541ec9bde8822c08168056d7b2a111877e3a46cf
tree57612e383fa2ffc855fd55d059ccbb456f8986b7
parent3d0a039e9617667af482be751e1c6363a40e35bf
Rewrite the GetFileInSDK methods in PlatformRemoteiOS,
PlatformRemoteAppleWatch, PlatformRemoteAppleTV and remove the
GetFileInSDKRoot method from those classes.

The rewrite uses the more modern FileSpec etc API to simplify,
and handles the case where an SDK Root is given to lldb with
the "/Symbols" directory name already appended.  The new version
will try appending "/Symbols" and "/Symbols.Internal" to the
sdk root directories, and will also try appending nothing to
the sdk root directory in case it's handed such an sdkroot.

<rdar://problem/28000054>

llvm-svn: 279688
lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleTV.cpp
lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleTV.h
lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleWatch.cpp
lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleWatch.h
lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp
lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.h