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 
32 
33  static const char *GetDescriptionStatic();
34 
35  // lldb_private::Platform functions
36 
37  const char *GetDescription() override { return GetDescriptionStatic(); }
38 
39  // lldb_private::PluginInterface functions
41  return GetPluginNameStatic();
42  }
43 
44  uint32_t GetPluginVersion() override { return 1; }
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_PLATFORMREMOTEIOS_H
lldb_private::ArchSpec
Definition: ArchSpec.h:33
PlatformRemoteDarwinDevice.h
PlatformRemoteiOS::GetPluginName
lldb_private::ConstString GetPluginName() override
Definition: PlatformRemoteiOS.h:40
PlatformRemoteDarwinDevice
Definition: PlatformRemoteDarwinDevice.h:19
PlatformRemoteiOS::GetDescription
const char * GetDescription() override
Definition: PlatformRemoteiOS.h:37
PlatformRemoteiOS::GetDescriptionStatic
static const char * GetDescriptionStatic()
Definition: PlatformRemoteiOS.cpp:133
PlatformRemoteiOS::GetPluginNameStatic
static lldb_private::ConstString GetPluginNameStatic()
Definition: PlatformRemoteiOS.cpp:128
PlatformRemoteiOS::Initialize
static void Initialize()
Definition: PlatformRemoteiOS.cpp:34
lldb_private::ConstString
Definition: ConstString.h:40
PlatformRemoteiOS::GetPlatformName
llvm::StringRef GetPlatformName() override
Definition: PlatformRemoteiOS.cpp:150
PlatformRemoteiOS
Definition: PlatformRemoteiOS.h:19
uint32_t
PlatformRemoteiOS::PlatformRemoteiOS
PlatformRemoteiOS()
Default Constructor.
Definition: PlatformRemoteiOS.cpp:138
PlatformRemoteiOS::GetDeviceSupportDirectoryName
llvm::StringRef GetDeviceSupportDirectoryName() override
Definition: PlatformRemoteiOS.cpp:146
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
Get the platform's supported architectures in the order in which they should be searched.
Definition: PlatformRemoteiOS.cpp:141
FileSpec.h
PlatformRemoteiOS::Terminate
static void Terminate()
Definition: PlatformRemoteiOS.cpp:44
PlatformRemoteiOS::GetPluginVersion
uint32_t GetPluginVersion() override
Definition: PlatformRemoteiOS.h:44