LLDB  mainline
PlatformRemoteAppleBridge.h
Go to the documentation of this file.
1 //===-- PlatformRemoteAppleBridge.h ---------------------------------*- C++
2 //-*-===//
3 //
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEAPPLEBRIDGE_H
11 #define LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEAPPLEBRIDGE_H
12 
14 #include "lldb/Utility/FileSpec.h"
15 #include "lldb/lldb-forward.h"
16 #include "llvm/ADT/StringRef.h"
17 
18 #include <vector>
19 
20 namespace lldb_private {
21 class ArchSpec;
22 
24 public:
26 
27  static lldb::PlatformSP CreateInstance(bool force, const ArchSpec *arch);
28 
29  static void Initialize();
30 
31  static void Terminate();
32 
33  static llvm::StringRef GetPluginNameStatic() { return "remote-bridgeos"; }
34 
35  static llvm::StringRef GetDescriptionStatic();
36 
37  llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
38 
39  llvm::StringRef GetDescription() override { return GetDescriptionStatic(); }
40 
41  std::vector<ArchSpec>
42  GetSupportedArchitectures(const ArchSpec &process_host_arch) override;
43 
44 protected:
45  llvm::StringRef GetDeviceSupportDirectoryName() override;
46  llvm::StringRef GetPlatformName() override;
47 };
48 
49 } // namespace lldb_private
50 
51 #endif // LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEAPPLEBRIDGE_H
lldb_private::PlatformRemoteAppleBridge
Definition: PlatformRemoteAppleBridge.h:23
lldb_private::ArchSpec
Definition: ArchSpec.h:32
lldb_private::PlatformRemoteAppleBridge::GetPluginNameStatic
static llvm::StringRef GetPluginNameStatic()
Definition: PlatformRemoteAppleBridge.h:33
lldb_private::PlatformRemoteAppleBridge::GetDescriptionStatic
static llvm::StringRef GetDescriptionStatic()
Definition: PlatformRemoteAppleBridge.cpp:137
lldb_private::PlatformRemoteAppleBridge::GetDeviceSupportDirectoryName
llvm::StringRef GetDeviceSupportDirectoryName() override
Definition: PlatformRemoteAppleBridge.cpp:146
lldb_private::PlatformRemoteAppleBridge::Initialize
static void Initialize()
Definition: PlatformRemoteAppleBridge.cpp:39
PlatformRemoteDarwinDevice.h
lldb_private::PlatformRemoteAppleBridge::GetSupportedArchitectures
std::vector< ArchSpec > GetSupportedArchitectures(const ArchSpec &process_host_arch) override
Get the platform's supported architectures in the order in which they should be searched.
Definition: PlatformRemoteAppleBridge.cpp:141
lldb_private::PlatformRemoteAppleBridge::GetPluginName
llvm::StringRef GetPluginName() override
Definition: PlatformRemoteAppleBridge.h:37
lldb_private::PlatformRemoteDarwinDevice
Definition: PlatformRemoteDarwinDevice.h:36
lldb_private::PlatformRemoteAppleBridge::Terminate
static void Terminate()
Definition: PlatformRemoteAppleBridge.cpp:49
lldb_private::PlatformRemoteAppleBridge::GetDescription
llvm::StringRef GetDescription() override
Definition: PlatformRemoteAppleBridge.h:39
lldb-forward.h
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
FileSpec.h
lldb_private::PlatformRemoteAppleBridge::CreateInstance
static lldb::PlatformSP CreateInstance(bool force, const ArchSpec *arch)
Definition: PlatformRemoteAppleBridge.cpp:59
lldb_private::PlatformRemoteAppleBridge::GetPlatformName
llvm::StringRef GetPlatformName() override
Definition: PlatformRemoteAppleBridge.cpp:150
lldb_private::PlatformRemoteAppleBridge::PlatformRemoteAppleBridge
PlatformRemoteAppleBridge()
Default Constructor.
Definition: PlatformRemoteAppleBridge.cpp:32