LLDB  mainline
PlatformRemoteMacOSX.h
Go to the documentation of this file.
1 //===-- PlatformRemoteMacOSX.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_PLATFORMREMOTEMACOSX_H
10 #define LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEMACOSX_H
11 
13 #include "lldb/Utility/FileSpec.h"
14 #include "lldb/Utility/Status.h"
15 #include "lldb/lldb-forward.h"
16 #include "llvm/ADT/StringRef.h"
17 
18 #include <string>
19 #include <vector>
20 
21 namespace lldb_private {
22 class ArchSpec;
23 class FileSpec;
24 class UUID;
25 
27 public:
29 
30  static lldb::PlatformSP CreateInstance(bool force, const ArchSpec *arch);
31 
32  static void Initialize();
33 
34  static void Terminate();
35 
36  static llvm::StringRef GetPluginNameStatic() { return "remote-macosx"; }
37 
38  static llvm::StringRef GetDescriptionStatic();
39 
40  llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
41 
42  llvm::StringRef GetDescription() override { return GetDescriptionStatic(); }
43 
44  std::vector<ArchSpec>
45  GetSupportedArchitectures(const ArchSpec &process_host_arch) override;
46 
47 protected:
48  llvm::StringRef GetDeviceSupportDirectoryName() override;
49  llvm::StringRef GetPlatformName() override;
50 };
51 
52 } // namespace lldb_private
53 
54 #endif // LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEMACOSX_H
lldb_private::PlatformRemoteMacOSX::Initialize
static void Initialize()
Definition: PlatformRemoteMacOSX.cpp:40
lldb_private::ArchSpec
Definition: ArchSpec.h:32
lldb_private::PlatformRemoteMacOSX::GetPluginName
llvm::StringRef GetPluginName() override
Definition: PlatformRemoteMacOSX.h:40
PlatformRemoteDarwinDevice.h
lldb_private::PlatformRemoteMacOSX::GetDescription
llvm::StringRef GetDescription() override
Definition: PlatformRemoteMacOSX.h:42
lldb_private::PlatformRemoteMacOSX::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: PlatformRemoteMacOSX.cpp:129
lldb_private::PlatformRemoteMacOSX::PlatformRemoteMacOSX
PlatformRemoteMacOSX()
Default Constructor.
Definition: PlatformRemoteMacOSX.cpp:34
lldb_private::PlatformRemoteDarwinDevice
Definition: PlatformRemoteDarwinDevice.h:36
lldb_private::PlatformRemoteMacOSX::Terminate
static void Terminate()
Definition: PlatformRemoteMacOSX.cpp:50
lldb_private::PlatformRemoteMacOSX::GetDescriptionStatic
static llvm::StringRef GetDescriptionStatic()
Definition: PlatformRemoteMacOSX.cpp:144
lldb_private::PlatformRemoteMacOSX::GetPlatformName
llvm::StringRef GetPlatformName() override
Definition: PlatformRemoteMacOSX.cpp:152
lldb_private::PlatformRemoteMacOSX
Definition: PlatformRemoteMacOSX.h:26
lldb-forward.h
Status.h
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
FileSpec.h
lldb_private::PlatformRemoteMacOSX::CreateInstance
static lldb::PlatformSP CreateInstance(bool force, const ArchSpec *arch)
Definition: PlatformRemoteMacOSX.cpp:60
lldb_private::PlatformRemoteMacOSX::GetDeviceSupportDirectoryName
llvm::StringRef GetDeviceSupportDirectoryName() override
Definition: PlatformRemoteMacOSX.cpp:148
lldb_private::PlatformRemoteMacOSX::GetPluginNameStatic
static llvm::StringRef GetPluginNameStatic()
Definition: PlatformRemoteMacOSX.h:36