LLDB  mainline
PlatformOpenBSD.h
Go to the documentation of this file.
1 //===-- PlatformOpenBSD.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_OPENBSD_PLATFORMOPENBSD_H
10 #define LLDB_SOURCE_PLUGINS_PLATFORM_OPENBSD_PLATFORMOPENBSD_H
11 
13 
14 namespace lldb_private {
15 namespace platform_openbsd {
16 
18 public:
19  PlatformOpenBSD(bool is_host);
20 
21  static void Initialize();
22 
23  static void Terminate();
24 
25  // lldb_private::PluginInterface functions
26  static lldb::PlatformSP CreateInstance(bool force, const ArchSpec *arch);
27 
28  static ConstString GetPluginNameStatic(bool is_host);
29 
30  static const char *GetPluginDescriptionStatic(bool is_host);
31 
32  llvm::StringRef GetPluginName() override {
34  }
35 
36  // lldb_private::Platform functions
37  const char *GetDescription() override {
39  }
40 
41  void GetStatus(Stream &strm) override;
42 
43  bool GetSupportedArchitectureAtIndex(uint32_t idx, ArchSpec &arch) override;
44 
45  bool CanDebugProcess() override;
46 
47  void CalculateTrapHandlerSymbolNames() override;
48 
50  lldb::addr_t length, unsigned prot,
51  unsigned flags, lldb::addr_t fd,
52  lldb::addr_t offset) override;
53 };
54 
55 } // namespace platform_openbsd
56 } // namespace lldb_private
57 
58 #endif // LLDB_SOURCE_PLUGINS_PLATFORM_OPENBSD_PLATFORMOPENBSD_H
lldb_private::ArchSpec
Definition: ArchSpec.h:33
lldb_private::platform_openbsd::PlatformOpenBSD::Terminate
static void Terminate()
Definition: PlatformOpenBSD.cpp:107
lldb_private::MmapArgList
llvm::SmallVector< lldb::addr_t, 6 > MmapArgList
Definition: Platform.h:58
lldb_private::platform_openbsd::PlatformOpenBSD::PlatformOpenBSD
PlatformOpenBSD(bool is_host)
Default Constructor.
Definition: PlatformOpenBSD.cpp:118
lldb_private::platform_openbsd::PlatformOpenBSD::GetMmapArgumentList
MmapArgList GetMmapArgumentList(const ArchSpec &arch, lldb::addr_t addr, lldb::addr_t length, unsigned prot, unsigned flags, lldb::addr_t fd, lldb::addr_t offset) override
Definition: PlatformOpenBSD.cpp:198
lldb_private::platform_openbsd::PlatformOpenBSD
Definition: PlatformOpenBSD.h:17
lldb_private::platform_openbsd::PlatformOpenBSD::CalculateTrapHandlerSymbolNames
void CalculateTrapHandlerSymbolNames() override
Ask the Platform subclass to fill in the list of trap handler names.
Definition: PlatformOpenBSD.cpp:194
lldb_private::Stream
Definition: Stream.h:28
lldb_private::platform_openbsd::PlatformOpenBSD::CreateInstance
static lldb::PlatformSP CreateInstance(bool force, const ArchSpec *arch)
Definition: PlatformOpenBSD.cpp:42
lldb::addr_t
uint64_t addr_t
Definition: lldb-types.h:83
PlatformPOSIX
Definition: PlatformPOSIX.h:18
lldb_private::ConstString::GetStringRef
llvm::StringRef GetStringRef() const
Get the string value as a llvm::StringRef.
Definition: ConstString.h:202
lldb_private::platform_openbsd::PlatformOpenBSD::GetStatus
void GetStatus(Stream &strm) override
Report the current status for this platform.
Definition: PlatformOpenBSD.cpp:169
lldb_private::platform_openbsd::PlatformOpenBSD::Initialize
static void Initialize()
Definition: PlatformOpenBSD.cpp:91
lldb_private::ConstString
Definition: ConstString.h:40
lldb_private::platform_openbsd::PlatformOpenBSD::GetDescription
const char * GetDescription() override
Definition: PlatformOpenBSD.h:37
lldb_private::platform_openbsd::PlatformOpenBSD::CanDebugProcess
bool CanDebugProcess() override
Not all platforms will support debugging a process by spawning somehow halted for a debugger (specifi...
Definition: PlatformOpenBSD.cpp:190
lldb_private::platform_openbsd::PlatformOpenBSD::GetSupportedArchitectureAtIndex
bool GetSupportedArchitectureAtIndex(uint32_t idx, ArchSpec &arch) override
Get the platform's supported architectures in the order in which they should be searched.
Definition: PlatformOpenBSD.cpp:122
uint32_t
lldb_private::platform_openbsd::PlatformOpenBSD::GetPluginDescriptionStatic
static const char * GetPluginDescriptionStatic(bool is_host)
Definition: PlatformOpenBSD.cpp:84
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
PlatformPOSIX.h
lldb_private::platform_openbsd::PlatformOpenBSD::GetPluginName
llvm::StringRef GetPluginName() override
Definition: PlatformOpenBSD.h:32
lldb_private::Platform::IsHost
bool IsHost() const
Definition: Platform.h:437
lldb_private::platform_openbsd::PlatformOpenBSD::GetPluginNameStatic
static ConstString GetPluginNameStatic(bool is_host)
Definition: PlatformOpenBSD.cpp:74