diff options
Diffstat (limited to 'lldb/source/Plugins/Platform/OpenBSD/PlatformOpenBSD.h')
| -rw-r--r-- | lldb/source/Plugins/Platform/OpenBSD/PlatformOpenBSD.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/lldb/source/Plugins/Platform/OpenBSD/PlatformOpenBSD.h b/lldb/source/Plugins/Platform/OpenBSD/PlatformOpenBSD.h index e1402ae0ae9f..fd03988590ca 100644 --- a/lldb/source/Plugins/Platform/OpenBSD/PlatformOpenBSD.h +++ b/lldb/source/Plugins/Platform/OpenBSD/PlatformOpenBSD.h @@ -25,22 +25,24 @@ public: // lldb_private::PluginInterface functions static lldb::PlatformSP CreateInstance(bool force, const ArchSpec *arch); - static ConstString GetPluginNameStatic(bool is_host); - - static const char *GetPluginDescriptionStatic(bool is_host); + static llvm::StringRef GetPluginNameStatic(bool is_host) { + return is_host ? Platform::GetHostPlatformName() : "remote-openbsd"; + } - ConstString GetPluginName() override; + static llvm::StringRef GetPluginDescriptionStatic(bool is_host); - uint32_t GetPluginVersion() override { return 1; } + llvm::StringRef GetPluginName() override { + return GetPluginNameStatic(IsHost()); + } // lldb_private::Platform functions - const char *GetDescription() override { + llvm::StringRef GetDescription() override { return GetPluginDescriptionStatic(IsHost()); } void GetStatus(Stream &strm) override; - bool GetSupportedArchitectureAtIndex(uint32_t idx, ArchSpec &arch) override; + std::vector<ArchSpec> GetSupportedArchitectures() override; bool CanDebugProcess() override; @@ -50,6 +52,8 @@ public: lldb::addr_t length, unsigned prot, unsigned flags, lldb::addr_t fd, lldb::addr_t offset) override; + + std::vector<ArchSpec> m_supported_architectures; }; } // namespace platform_openbsd |
