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 
33 
34  static const char *GetDescriptionStatic();
35 
37  return GetPluginNameStatic();
38  }
39 
40  uint32_t GetPluginVersion() override { return 1; }
41 
42  const char *GetDescription() override { return GetDescriptionStatic(); }
43 
45  GetFileWithUUID(const lldb_private::FileSpec &platform_file,
46  const lldb_private::UUID *uuid_ptr,
47  lldb_private::FileSpec &local_file) override;
48 
50  lldb_private::ArchSpec &arch) override;
51 
52 protected:
53  llvm::StringRef GetDeviceSupportDirectoryName() override;
54  llvm::StringRef GetPlatformName() override;
55 
56 private:
58 };
59 
60 #endif // LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEMACOSX_H
PlatformRemoteMacOSX::GetPluginVersion
uint32_t GetPluginVersion() override
Definition: PlatformRemoteMacOSX.h:40
PlatformRemoteMacOSX::GetDescription
const char * GetDescription() override
Definition: PlatformRemoteMacOSX.h:42
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:57
PlatformRemoteDarwinDevice.h
PlatformRemoteDarwinDevice
Definition: PlatformRemoteDarwinDevice.h:19
PlatformRemoteMacOSX::GetDescriptionStatic
static const char * GetDescriptionStatic()
Definition: PlatformRemoteMacOSX.cpp:209
PlatformRemoteMacOSX::GetDeviceSupportDirectoryName
llvm::StringRef GetDeviceSupportDirectoryName() override
Definition: PlatformRemoteMacOSX.cpp:213
PlatformMacOSX.h
lldb_private::FileSpec
Definition: FileSpec.h:56
PlatformRemoteMacOSX::GetPluginNameStatic
static lldb_private::ConstString GetPluginNameStatic()
Definition: PlatformRemoteMacOSX.cpp:204
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:217
lldb_private::ConstString
Definition: ConstString.h:40
PlatformRemoteMacOSX::PlatformRemoteMacOSX
PlatformRemoteMacOSX()
Default Constructor.
Definition: PlatformRemoteMacOSX.cpp:33
PlatformRemoteMacOSX::GetPluginName
lldb_private::ConstString GetPluginName() override
Definition: PlatformRemoteMacOSX.h:36
lldb_private::Status
Definition: Status.h:44
uint32_t
PlatformRemoteMacOSX::CreateInstance
static lldb::PlatformSP CreateInstance(bool force, const lldb_private::ArchSpec *arch)
Definition: PlatformRemoteMacOSX.cpp:59
FileSpec.h
PlatformRemoteMacOSX::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: 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