diff options
| author | Greg Clayton <gclayton@apple.com> | 2012-04-18 00:06:56 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2012-04-18 00:06:56 +0000 |
| commit | d38e55e81552bd4088b83cc8feb36dc5699daa5e (patch) | |
| tree | 805088b6fa3fcc70a046ce0586cd60fb4b78596c /lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.h | |
| parent | ac7a3db0677309c6a81f9cf59e1b14dd7881fce1 (diff) | |
| download | bcm5719-llvm-d38e55e81552bd4088b83cc8feb36dc5699daa5e.tar.gz bcm5719-llvm-d38e55e81552bd4088b83cc8feb36dc5699daa5e.zip | |
Update the way SDK directories are found so we are not reliant on the old "Latest" symlinks in the DeviceSupport directory.
llvm-svn: 154966
Diffstat (limited to 'lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.h')
| -rw-r--r-- | lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.h | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.h b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.h index 051b5846dc8..4991016c0cc 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.h +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.h @@ -13,6 +13,8 @@ // C Includes // C++ Includes // Other libraries and framework includes +#include "lldb/Host/FileSpec.h" + // Project includes #include "PlatformDarwin.h" @@ -113,13 +115,42 @@ public: lldb_private::ArchSpec &arch); protected: + struct SDKDirectoryInfo + { + SDKDirectoryInfo (const lldb_private::ConstString &dirname); + lldb_private::ConstString directory; + lldb_private::ConstString build; + uint32_t version_major; + uint32_t version_minor; + uint32_t version_update; + }; + typedef std::vector<SDKDirectoryInfo> SDKDirectoryInfoCollection; + std::string m_device_support_directory; + SDKDirectoryInfoCollection m_sdk_directory_infos; std::string m_device_support_directory_for_os_version; std::string m_build_update; //std::vector<FileSpec> m_device_support_os_dirs; - + + bool + UpdateSDKDirectoryInfosInNeeded(); + + const char * + GetDeviceSupportDirectory(); + const char * GetDeviceSupportDirectoryForOSVersion(); + const SDKDirectoryInfo * + GetSDKDirectoryForLatestOSVersion (); + + const SDKDirectoryInfo * + GetSDKDirectoryForCurrentOSVersion (); + + static lldb_private::FileSpec::EnumerateDirectoryResult + GetContainedFilesIntoVectorOfStringsCallback (void *baton, + lldb_private::FileSpec::FileType file_type, + const lldb_private::FileSpec &file_spec); + private: DISALLOW_COPY_AND_ASSIGN (PlatformRemoteiOS); |

