Coverage Report

Created: 2023-09-12 09:32

/Users/buildslave/jenkins/workspace/coverage/llvm-project/lldb/include/lldb/Interpreter/ScriptedPlatformInterface.h
Line
Count
Source (jump to first uncovered line)
1
//===-- ScriptedPlatformInterface.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_INTERPRETER_SCRIPTEDPLATFORMINTERFACE_H
10
#define LLDB_INTERPRETER_SCRIPTEDPLATFORMINTERFACE_H
11
12
#include "lldb/Core/StructuredDataImpl.h"
13
#include "lldb/Interpreter/ScriptedInterface.h"
14
15
#include "lldb/lldb-private.h"
16
17
#include <string>
18
19
namespace lldb_private {
20
class ScriptedPlatformInterface : virtual public ScriptedInterface {
21
public:
22
  StructuredData::GenericSP
23
  CreatePluginObject(llvm::StringRef class_name, ExecutionContext &exe_ctx,
24
                     StructuredData::DictionarySP args_sp,
25
0
                     StructuredData::Generic *script_obj = nullptr) override {
26
0
    return {};
27
0
  }
28
29
0
  virtual StructuredData::DictionarySP ListProcesses() { return {}; }
30
31
0
  virtual StructuredData::DictionarySP GetProcessInfo(lldb::pid_t) {
32
0
    return {};
33
0
  }
34
35
0
  virtual Status AttachToProcess(lldb::ProcessAttachInfoSP attach_info) {
36
0
    return Status("ScriptedPlatformInterface cannot attach to a process");
37
0
  }
38
39
0
  virtual Status LaunchProcess(lldb::ProcessLaunchInfoSP launch_info) {
40
0
    return Status("ScriptedPlatformInterface cannot launch process");
41
0
  }
42
43
0
  virtual Status KillProcess(lldb::pid_t pid) {
44
0
    return Status("ScriptedPlatformInterface cannot kill process");
45
0
  }
46
};
47
} // namespace lldb_private
48
49
#endif // LLDB_INTERPRETER_SCRIPTEDPLATFORMINTERFACE_H