Coverage Report

Created: 2022-01-15 10:30

/Users/buildslave/jenkins/workspace/coverage/llvm-project/lldb/source/Plugins/Platform/NetBSD/PlatformNetBSD.h
Line
Count
Source (jump to first uncovered line)
1
//===-- PlatformNetBSD.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_NETBSD_PLATFORMNETBSD_H
10
#define LLDB_SOURCE_PLUGINS_PLATFORM_NETBSD_PLATFORMNETBSD_H
11
12
#include "Plugins/Platform/POSIX/PlatformPOSIX.h"
13
14
namespace lldb_private {
15
namespace platform_netbsd {
16
17
class PlatformNetBSD : public PlatformPOSIX {
18
public:
19
  PlatformNetBSD(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
3.43k
  static llvm::StringRef GetPluginNameStatic(bool is_host) {
29
3.43k
    return is_host ? 
Platform::GetHostPlatformName()0
: "remote-netbsd";
30
3.43k
  }
31
32
  static llvm::StringRef GetPluginDescriptionStatic(bool is_host);
33
34
0
  llvm::StringRef GetPluginName() override {
35
0
    return GetPluginNameStatic(IsHost());
36
0
  }
37
38
  // lldb_private::Platform functions
39
0
  llvm::StringRef GetDescription() override {
40
0
    return GetPluginDescriptionStatic(IsHost());
41
0
  }
42
43
  void GetStatus(Stream &strm) override;
44
45
  std::vector<ArchSpec> GetSupportedArchitectures() override;
46
47
  uint32_t GetResumeCountForLaunchInfo(ProcessLaunchInfo &launch_info) override;
48
49
  bool CanDebugProcess() override;
50
51
  void CalculateTrapHandlerSymbolNames() override;
52
53
  MmapArgList GetMmapArgumentList(const ArchSpec &arch, lldb::addr_t addr,
54
                                  lldb::addr_t length, unsigned prot,
55
                                  unsigned flags, lldb::addr_t fd,
56
                                  lldb::addr_t offset) override;
57
58
  std::vector<ArchSpec> m_supported_architectures;
59
};
60
61
} // namespace platform_netbsd
62
} // namespace lldb_private
63
64
#endif // LLDB_SOURCE_PLUGINS_PLATFORM_NETBSD_PLATFORMNETBSD_H