2015-11-06 08:22:53 +08:00
|
|
|
//===-- PlatformRemoteAppleWatch.h ------------------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef liblldb_PlatformRemoteAppleWatch_h_
|
|
|
|
#define liblldb_PlatformRemoteAppleWatch_h_
|
|
|
|
|
|
|
|
// C Includes
|
|
|
|
// C++ Includes
|
2015-11-07 08:28:50 +08:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2015-11-06 08:22:53 +08:00
|
|
|
// Other libraries and framework includes
|
2015-11-07 08:28:50 +08:00
|
|
|
// Project includes
|
2017-03-23 02:40:07 +08:00
|
|
|
#include "lldb/Utility/FileSpec.h"
|
2015-11-06 08:22:53 +08:00
|
|
|
|
2017-04-18 06:52:20 +08:00
|
|
|
#include "PlatformRemoteDarwinDevice.h"
|
2015-11-06 08:22:53 +08:00
|
|
|
|
2017-03-09 01:56:08 +08:00
|
|
|
#include "llvm/Support/FileSystem.h"
|
|
|
|
|
2017-04-18 06:52:20 +08:00
|
|
|
class PlatformRemoteAppleWatch : public PlatformRemoteDarwinDevice {
|
2015-11-06 08:22:53 +08:00
|
|
|
public:
|
2016-09-07 04:57:50 +08:00
|
|
|
PlatformRemoteAppleWatch();
|
|
|
|
|
|
|
|
~PlatformRemoteAppleWatch() override = default;
|
|
|
|
|
|
|
|
//------------------------------------------------------------
|
|
|
|
// Class Functions
|
|
|
|
//------------------------------------------------------------
|
|
|
|
static lldb::PlatformSP CreateInstance(bool force,
|
|
|
|
const lldb_private::ArchSpec *arch);
|
|
|
|
|
|
|
|
static void Initialize();
|
|
|
|
|
|
|
|
static void Terminate();
|
|
|
|
|
|
|
|
static lldb_private::ConstString GetPluginNameStatic();
|
|
|
|
|
|
|
|
static const char *GetDescriptionStatic();
|
|
|
|
|
|
|
|
//------------------------------------------------------------
|
2017-04-18 06:52:20 +08:00
|
|
|
// lldb_private::Platform functions
|
2016-09-07 04:57:50 +08:00
|
|
|
//------------------------------------------------------------
|
|
|
|
|
2017-04-18 06:52:20 +08:00
|
|
|
const char *GetDescription() override { return GetDescriptionStatic(); }
|
|
|
|
|
2016-09-07 04:57:50 +08:00
|
|
|
//------------------------------------------------------------
|
|
|
|
// lldb_private::PluginInterface functions
|
|
|
|
//------------------------------------------------------------
|
|
|
|
lldb_private::ConstString GetPluginName() override {
|
|
|
|
return GetPluginNameStatic();
|
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t GetPluginVersion() override { return 1; }
|
|
|
|
|
|
|
|
//------------------------------------------------------------
|
|
|
|
// lldb_private::Platform functions
|
|
|
|
//------------------------------------------------------------
|
|
|
|
|
|
|
|
bool GetSupportedArchitectureAtIndex(uint32_t idx,
|
|
|
|
lldb_private::ArchSpec &arch) override;
|
|
|
|
|
2015-11-06 08:22:53 +08:00
|
|
|
protected:
|
2016-09-07 04:57:50 +08:00
|
|
|
|
2017-04-18 06:52:20 +08:00
|
|
|
//------------------------------------------------------------
|
|
|
|
// lldb_private::PlatformRemoteDarwinDevice functions
|
|
|
|
//------------------------------------------------------------
|
2016-09-07 04:57:50 +08:00
|
|
|
|
2017-04-18 06:52:20 +08:00
|
|
|
void GetDeviceSupportDirectoryNames (std::vector<std::string> &dirnames) override;
|
2016-09-07 04:57:50 +08:00
|
|
|
|
2017-04-18 06:52:20 +08:00
|
|
|
std::string GetPlatformName () override;
|
2015-11-06 08:22:53 +08:00
|
|
|
|
|
|
|
private:
|
2016-09-07 04:57:50 +08:00
|
|
|
DISALLOW_COPY_AND_ASSIGN(PlatformRemoteAppleWatch);
|
2015-11-06 08:22:53 +08:00
|
|
|
};
|
|
|
|
|
2015-11-07 08:28:50 +08:00
|
|
|
#endif // liblldb_PlatformRemoteAppleWatch_h_
|