]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/source/Plugins/Platform/NetBSD/PlatformNetBSD.h
Update from sqlite3-3.14.1 to sqlite3-3.20.0. This is a private lib.
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / source / Plugins / Platform / NetBSD / PlatformNetBSD.h
1 //===-- PlatformNetBSD.h ----------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef liblldb_PlatformNetBSD_h_
11 #define liblldb_PlatformNetBSD_h_
12
13 #include "Plugins/Platform/POSIX/PlatformPOSIX.h"
14
15 namespace lldb_private {
16 namespace platform_netbsd {
17
18 class PlatformNetBSD : public PlatformPOSIX {
19 public:
20   PlatformNetBSD(bool is_host);
21
22   ~PlatformNetBSD() override;
23
24   static void Initialize();
25
26   static void Terminate();
27
28   //------------------------------------------------------------
29   // lldb_private::PluginInterface functions
30   //------------------------------------------------------------
31   static lldb::PlatformSP CreateInstance(bool force, const ArchSpec *arch);
32
33   static ConstString GetPluginNameStatic(bool is_host);
34
35   static const char *GetPluginDescriptionStatic(bool is_host);
36
37   ConstString GetPluginName() override;
38
39   uint32_t GetPluginVersion() override { return 1; }
40
41   //------------------------------------------------------------
42   // lldb_private::Platform functions
43   //------------------------------------------------------------
44   const char *GetDescription() override {
45     return GetPluginDescriptionStatic(IsHost());
46   }
47
48   void GetStatus(Stream &strm) override;
49
50   bool GetSupportedArchitectureAtIndex(uint32_t idx, ArchSpec &arch) override;
51
52   int32_t GetResumeCountForLaunchInfo(ProcessLaunchInfo &launch_info) override;
53
54   bool CanDebugProcess() override;
55
56   lldb::ProcessSP DebugProcess(ProcessLaunchInfo &launch_info,
57                                Debugger &debugger, Target *target,
58                                Status &error) override;
59
60   void CalculateTrapHandlerSymbolNames() override;
61
62   MmapArgList GetMmapArgumentList(const ArchSpec &arch, lldb::addr_t addr,
63                                   lldb::addr_t length, unsigned prot,
64                                   unsigned flags, lldb::addr_t fd,
65                                   lldb::addr_t offset) override;
66
67 private:
68   DISALLOW_COPY_AND_ASSIGN(PlatformNetBSD);
69 };
70
71 } // namespace platform_netbsd
72 } // namespace lldb_private
73
74 #endif // liblldb_PlatformNetBSD_h_