xref: /llvm-project/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleBridge.h (revision d667840465b0ea0dbd39dcbd56788e73698dc853)
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 
13 #include "PlatformRemoteDarwinDevice.h"
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 
23 class PlatformRemoteAppleBridge : public PlatformRemoteDarwinDevice {
24 public:
25   PlatformRemoteAppleBridge();
26 
27   static lldb::PlatformSP CreateInstance(bool force, const ArchSpec *arch);
28 
29   static void Initialize();
30 
31   static void Terminate();
32 
GetPluginNameStatic()33   static llvm::StringRef GetPluginNameStatic() { return "remote-bridgeos"; }
34 
35   static llvm::StringRef GetDescriptionStatic();
36 
GetPluginName()37   llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
38 
GetDescription()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
52