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 
33  static llvm::StringRef GetPluginNameStatic() { return "remote-watchos"; }
34 
35  static llvm::StringRef GetDescriptionStatic();
36 
37  // lldb_private::Platform functions
38 
39  llvm::StringRef GetDescription() override { return GetDescriptionStatic(); }
40 
41  // lldb_private::PluginInterface functions
42  llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
43 
44  // lldb_private::Platform functions
45 
47  lldb_private::ArchSpec &arch) override;
48 
49 protected:
50  llvm::StringRef GetDeviceSupportDirectoryName() override;
51  llvm::StringRef GetPlatformName() override;
52 };
53 
54 #endif // LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEAPPLEWATCH_H
PlatformRemoteAppleWatch::GetDeviceSupportDirectoryName
llvm::StringRef GetDeviceSupportDirectoryName() override
Definition: PlatformRemoteAppleWatch.cpp:296
PlatformRemoteAppleWatch
Definition: PlatformRemoteAppleWatch.h:21
lldb_private::ArchSpec
Definition: ArchSpec.h:33
PlatformRemoteAppleWatch::GetDescription
llvm::StringRef GetDescription() override
Definition: PlatformRemoteAppleWatch.h:39
PlatformRemoteAppleWatch::Terminate
static void Terminate()
Definition: PlatformRemoteAppleWatch.cpp:46
PlatformRemoteAppleWatch::PlatformRemoteAppleWatch
PlatformRemoteAppleWatch()
Default Constructor.
Definition: PlatformRemoteAppleWatch.cpp:143
PlatformRemoteDarwinDevice.h
PlatformRemoteDarwinDevice
Definition: PlatformRemoteDarwinDevice.h:19
PlatformRemoteAppleWatch::GetDescriptionStatic
static llvm::StringRef GetDescriptionStatic()
Definition: PlatformRemoteAppleWatch.cpp:138
PlatformRemoteAppleWatch::GetSupportedArchitectureAtIndex
bool GetSupportedArchitectureAtIndex(uint32_t idx, lldb_private::ArchSpec &arch) override
Definition: PlatformRemoteAppleWatch.cpp:146
PlatformRemoteAppleWatch::GetPlatformName
llvm::StringRef GetPlatformName() override
Definition: PlatformRemoteAppleWatch.cpp:300
PlatformRemoteAppleWatch::GetPluginName
llvm::StringRef GetPluginName() override
Definition: PlatformRemoteAppleWatch.h:42
uint32_t
PlatformRemoteAppleWatch::GetPluginNameStatic
static llvm::StringRef GetPluginNameStatic()
Definition: PlatformRemoteAppleWatch.h:33
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