LLDB  mainline
PlatformRemoteAppleWatch.h
Go to the documentation of this file.
1 //===-- PlatformRemoteAppleWatch.h ------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEAPPLEWATCH_H
10 #define LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEAPPLEWATCH_H
11 
12 #include <string>
13 #include <vector>
14 
15 #include "lldb/Utility/FileSpec.h"
16 
18 
19 #include "llvm/Support/FileSystem.h"
20 
22 public:
24 
25  // Class Functions
26  static lldb::PlatformSP CreateInstance(bool force,
27  const lldb_private::ArchSpec *arch);
28 
29  static void Initialize();
30 
31  static void Terminate();
32 
34 
35  static const char *GetDescriptionStatic();
36 
37  // lldb_private::Platform functions
38 
39  const char *GetDescription() override { return GetDescriptionStatic(); }
40 
41  // lldb_private::PluginInterface functions
43  return GetPluginNameStatic();
44  }
45 
46  uint32_t GetPluginVersion() override { return 1; }
47 
48  // lldb_private::Platform functions
49 
51  lldb_private::ArchSpec &arch) override;
52 
53 protected:
54  llvm::StringRef GetDeviceSupportDirectoryName() override;
55  llvm::StringRef GetPlatformName() override;
56 };
57 
58 #endif // LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEAPPLEWATCH_H
PlatformRemoteAppleWatch::GetDeviceSupportDirectoryName
llvm::StringRef GetDeviceSupportDirectoryName() override
Definition: PlatformRemoteAppleWatch.cpp:301
PlatformRemoteAppleWatch
Definition: PlatformRemoteAppleWatch.h:21
PlatformRemoteAppleWatch::GetPluginVersion
uint32_t GetPluginVersion() override
Definition: PlatformRemoteAppleWatch.h:46
lldb_private::ArchSpec
Definition: ArchSpec.h:33
PlatformRemoteAppleWatch::Terminate
static void Terminate()
Definition: PlatformRemoteAppleWatch.cpp:46
PlatformRemoteAppleWatch::PlatformRemoteAppleWatch
PlatformRemoteAppleWatch()
Default Constructor.
Definition: PlatformRemoteAppleWatch.cpp:148
PlatformRemoteDarwinDevice.h
PlatformRemoteDarwinDevice
Definition: PlatformRemoteDarwinDevice.h:19
PlatformRemoteAppleWatch::GetSupportedArchitectureAtIndex
bool GetSupportedArchitectureAtIndex(uint32_t idx, lldb_private::ArchSpec &arch) override
Get the platform's supported architectures in the order in which they should be searched.
Definition: PlatformRemoteAppleWatch.cpp:151
PlatformRemoteAppleWatch::GetPluginNameStatic
static lldb_private::ConstString GetPluginNameStatic()
Definition: PlatformRemoteAppleWatch.cpp:138
PlatformRemoteAppleWatch::GetPluginName
lldb_private::ConstString GetPluginName() override
Definition: PlatformRemoteAppleWatch.h:42
PlatformRemoteAppleWatch::GetDescriptionStatic
static const char * GetDescriptionStatic()
Definition: PlatformRemoteAppleWatch.cpp:143
PlatformRemoteAppleWatch::GetDescription
const char * GetDescription() override
Definition: PlatformRemoteAppleWatch.h:39
PlatformRemoteAppleWatch::GetPlatformName
llvm::StringRef GetPlatformName() override
Definition: PlatformRemoteAppleWatch.cpp:305
lldb_private::ConstString
Definition: ConstString.h:40
uint32_t
PlatformRemoteAppleWatch::Initialize
static void Initialize()
Definition: PlatformRemoteAppleWatch.cpp:35
PlatformRemoteAppleWatch::CreateInstance
static lldb::PlatformSP CreateInstance(bool force, const lldb_private::ArchSpec *arch)
Definition: PlatformRemoteAppleWatch.cpp:56
FileSpec.h