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 
12 #include <string>
13 
14 #include "lldb/Utility/FileSpec.h"
15 
16 #include "llvm/Support/FileSystem.h"
17 
18 #include "PlatformMacOSX.h"
20 
22 public:
24 
25  static lldb::PlatformSP CreateInstance(bool force,
26  const lldb_private::ArchSpec *arch);
27 
28  static void Initialize();
29 
30  static void Terminate();
31 
32  static llvm::StringRef GetPluginNameStatic() { return "remote-macosx"; }
33 
34  static llvm::StringRef GetDescriptionStatic();
35 
36  llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
37 
38  llvm::StringRef GetDescription() override { return GetDescriptionStatic(); }
39 
41  GetFileWithUUID(const lldb_private::FileSpec &platform_file,
42  const lldb_private::UUID *uuid_ptr,
43  lldb_private::FileSpec &local_file) override;
44 
46  lldb_private::ArchSpec &arch) override;
47 
48 protected:
49  llvm::StringRef GetDeviceSupportDirectoryName() override;
50  llvm::StringRef GetPlatformName() override;
51 
52 private:
54 };
55 
56 #endif // LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEMACOSX_H
PlatformRemoteMacOSX::GetDescriptionStatic
static llvm::StringRef GetDescriptionStatic()
Definition: PlatformRemoteMacOSX.cpp:204
lldb_private::UUID
Definition: UUID.h:23
lldb_private::ArchSpec
Definition: ArchSpec.h:33
PlatformRemoteMacOSX
Definition: PlatformRemoteMacOSX.h:21
PlatformRemoteMacOSX::m_num_arm_arches
uint32_t m_num_arm_arches
Definition: PlatformRemoteMacOSX.h:53
PlatformRemoteDarwinDevice.h
PlatformRemoteDarwinDevice
Definition: PlatformRemoteDarwinDevice.h:19
PlatformRemoteMacOSX::GetDescription
llvm::StringRef GetDescription() override
Definition: PlatformRemoteMacOSX.h:38
PlatformRemoteMacOSX::GetDeviceSupportDirectoryName
llvm::StringRef GetDeviceSupportDirectoryName() override
Definition: PlatformRemoteMacOSX.cpp:208
PlatformMacOSX.h
lldb_private::FileSpec
Definition: FileSpec.h:56
PlatformRemoteMacOSX::Terminate
static void Terminate()
Definition: PlatformRemoteMacOSX.cpp:49
PlatformRemoteMacOSX::Initialize
static void Initialize()
Definition: PlatformRemoteMacOSX.cpp:39
PlatformRemoteMacOSX::GetPlatformName
llvm::StringRef GetPlatformName() override
Definition: PlatformRemoteMacOSX.cpp:212
PlatformRemoteMacOSX::PlatformRemoteMacOSX
PlatformRemoteMacOSX()
Default Constructor.
Definition: PlatformRemoteMacOSX.cpp:33
lldb_private::Status
Definition: Status.h:44
uint32_t
PlatformRemoteMacOSX::GetPluginName
llvm::StringRef GetPluginName() override
Definition: PlatformRemoteMacOSX.h:36
PlatformRemoteMacOSX::CreateInstance
static lldb::PlatformSP CreateInstance(bool force, const lldb_private::ArchSpec *arch)
Definition: PlatformRemoteMacOSX.cpp:59
FileSpec.h
PlatformRemoteMacOSX::GetPluginNameStatic
static llvm::StringRef GetPluginNameStatic()
Definition: PlatformRemoteMacOSX.h:32
PlatformRemoteMacOSX::GetSupportedArchitectureAtIndex
bool GetSupportedArchitectureAtIndex(uint32_t idx, lldb_private::ArchSpec &arch) override
Definition: PlatformRemoteMacOSX.cpp:127
PlatformRemoteMacOSX::GetFileWithUUID
lldb_private::Status GetFileWithUUID(const lldb_private::FileSpec &platform_file, const lldb_private::UUID *uuid_ptr, lldb_private::FileSpec &local_file) override
Locate a file for a platform.
Definition: PlatformRemoteMacOSX.cpp:158