summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Platform/NetBSD/PlatformNetBSD.h
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Plugins/Platform/NetBSD/PlatformNetBSD.h')
-rw-r--r--lldb/source/Plugins/Platform/NetBSD/PlatformNetBSD.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/lldb/source/Plugins/Platform/NetBSD/PlatformNetBSD.h b/lldb/source/Plugins/Platform/NetBSD/PlatformNetBSD.h
index e664f5181123..7158fbd26efb 100644
--- a/lldb/source/Plugins/Platform/NetBSD/PlatformNetBSD.h
+++ b/lldb/source/Plugins/Platform/NetBSD/PlatformNetBSD.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-netbsd";
+ }
- 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;
uint32_t GetResumeCountForLaunchInfo(ProcessLaunchInfo &launch_info) override;
@@ -52,6 +54,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_netbsd