LLDB  mainline
PlatformRemoteiOS.h
Go to the documentation of this file.
1 //===-- PlatformRemoteiOS.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_PLATFORMREMOTEIOS_H
10 #define LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEIOS_H
11 
12 #include <string>
13 
15 #include "lldb/Utility/FileSpec.h"
16 
17 #include "llvm/Support/FileSystem.h"
18 
20 public:
22 
23  // Class Functions
24  static lldb::PlatformSP CreateInstance(bool force,
25  const lldb_private::ArchSpec *arch);
26 
27  static void Initialize();
28 
29  static void Terminate();
30 
31  static llvm::StringRef GetPluginNameStatic() { return "remote-ios"; }
32 
33  static llvm::StringRef GetDescriptionStatic();
34 
35  // lldb_private::Platform functions
36 
37  llvm::StringRef GetDescription() override { return GetDescriptionStatic(); }
38 
39  // lldb_private::PluginInterface functions
40  llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
41 
43  lldb_private::ArchSpec &arch) override;
44 
45 protected:
46  llvm::StringRef GetDeviceSupportDirectoryName() override;
47  llvm::StringRef GetPlatformName() override;
48 };
49 
50 #endif // LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEIOS_H
lldb_private::ArchSpec
Definition: ArchSpec.h:33
PlatformRemoteDarwinDevice.h
PlatformRemoteDarwinDevice
Definition: PlatformRemoteDarwinDevice.h:19
PlatformRemoteiOS::GetPluginNameStatic
static llvm::StringRef GetPluginNameStatic()
Definition: PlatformRemoteiOS.h:31
PlatformRemoteiOS::Initialize
static void Initialize()
Definition: PlatformRemoteiOS.cpp:34
PlatformRemoteiOS::GetPlatformName
llvm::StringRef GetPlatformName() override
Definition: PlatformRemoteiOS.cpp:145
PlatformRemoteiOS
Definition: PlatformRemoteiOS.h:19
uint32_t
PlatformRemoteiOS::GetDescription
llvm::StringRef GetDescription() override
Definition: PlatformRemoteiOS.h:37
PlatformRemoteiOS::PlatformRemoteiOS
PlatformRemoteiOS()
Default Constructor.
Definition: PlatformRemoteiOS.cpp:133
PlatformRemoteiOS::GetDeviceSupportDirectoryName
llvm::StringRef GetDeviceSupportDirectoryName() override
Definition: PlatformRemoteiOS.cpp:141
PlatformRemoteiOS::GetDescriptionStatic
static llvm::StringRef GetDescriptionStatic()
Definition: PlatformRemoteiOS.cpp:128
PlatformRemoteiOS::CreateInstance
static lldb::PlatformSP CreateInstance(bool force, const lldb_private::ArchSpec *arch)
Definition: PlatformRemoteiOS.cpp:54
PlatformRemoteiOS::GetSupportedArchitectureAtIndex
bool GetSupportedArchitectureAtIndex(uint32_t idx, lldb_private::ArchSpec &arch) override
Definition: PlatformRemoteiOS.cpp:136
FileSpec.h
PlatformRemoteiOS::Terminate
static void Terminate()
Definition: PlatformRemoteiOS.cpp:44
PlatformRemoteiOS::GetPluginName
llvm::StringRef GetPluginName() override
Definition: PlatformRemoteiOS.h:40