LLDB  mainline
PlatformRemoteAppleTV.h
Go to the documentation of this file.
1 //===-- PlatformRemoteAppleTV.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_PLATFORMREMOTEAPPLETV_H
10 #define LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEAPPLETV_H
11 
13 #include "lldb/Utility/FileSpec.h"
14 #include "lldb/lldb-forward.h"
15 #include "llvm/ADT/StringRef.h"
16 #include "llvm/Support/FileSystem.h"
17 
18 #include <string>
19 #include <vector>
20 
21 namespace lldb_private {
22 class ArchSpec;
23 
25 public:
27 
28  // Class Functions
29  static lldb::PlatformSP CreateInstance(bool force,
30  const lldb_private::ArchSpec *arch);
31 
32  static void Initialize();
33 
34  static void Terminate();
35 
36  static llvm::StringRef GetPluginNameStatic() { return "remote-tvos"; }
37 
38  static llvm::StringRef GetDescriptionStatic();
39 
40  // lldb_private::PluginInterface functions
41  llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
42 
43  // lldb_private::Platform functions
44 
45  llvm::StringRef GetDescription() override { return GetDescriptionStatic(); }
46 
47  std::vector<lldb_private::ArchSpec> GetSupportedArchitectures(
48  const lldb_private::ArchSpec &process_host_arch) override;
49 
50 protected:
51  llvm::StringRef GetDeviceSupportDirectoryName() override;
52  llvm::StringRef GetPlatformName() override;
53 };
54 
55 } // namespace lldb_private
56 
57 #endif // LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEAPPLETV_H
lldb_private::PlatformRemoteAppleTV::GetPlatformName
llvm::StringRef GetPlatformName() override
Definition: PlatformRemoteAppleTV.cpp:161
lldb_private::PlatformRemoteAppleTV::GetPluginName
llvm::StringRef GetPluginName() override
Definition: PlatformRemoteAppleTV.h:41
lldb_private::PlatformRemoteAppleTV
Definition: PlatformRemoteAppleTV.h:24
lldb_private::ArchSpec
Definition: ArchSpec.h:33
lldb_private::PlatformRemoteAppleTV::GetDeviceSupportDirectoryName
llvm::StringRef GetDeviceSupportDirectoryName() override
Definition: PlatformRemoteAppleTV.cpp:157
PlatformRemoteDarwinDevice.h
lldb_private::PlatformRemoteAppleTV::GetSupportedArchitectures
std::vector< lldb_private::ArchSpec > GetSupportedArchitectures(const lldb_private::ArchSpec &process_host_arch) override
Get the platform's supported architectures in the order in which they should be searched.
Definition: PlatformRemoteAppleTV.cpp:136
lldb_private::PlatformRemoteAppleTV::CreateInstance
static lldb::PlatformSP CreateInstance(bool force, const lldb_private::ArchSpec *arch)
Definition: PlatformRemoteAppleTV.cpp:60
lldb_private::PlatformRemoteAppleTV::GetPluginNameStatic
static llvm::StringRef GetPluginNameStatic()
Definition: PlatformRemoteAppleTV.h:36
lldb_private::PlatformRemoteAppleTV::PlatformRemoteAppleTV
PlatformRemoteAppleTV()
Default Constructor.
Definition: PlatformRemoteAppleTV.cpp:33
lldb_private::PlatformRemoteAppleTV::Terminate
static void Terminate()
Definition: PlatformRemoteAppleTV.cpp:50
lldb_private::PlatformRemoteDarwinDevice
Definition: PlatformRemoteDarwinDevice.h:36
lldb_private::PlatformRemoteAppleTV::GetDescriptionStatic
static llvm::StringRef GetDescriptionStatic()
Definition: PlatformRemoteAppleTV.cpp:132
lldb_private::PlatformRemoteAppleTV::GetDescription
llvm::StringRef GetDescription() override
Definition: PlatformRemoteAppleTV.h:45
lldb_private::PlatformRemoteAppleTV::Initialize
static void Initialize()
Definition: PlatformRemoteAppleTV.cpp:40
lldb-forward.h
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
FileSpec.h