Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/contrib/llvm-project/lldb/source/API/SBReproducer.cpp
39587 views
1
//===-- SBReproducer.cpp --------------------------------------------------===//
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
#include "lldb/API/SBReproducer.h"
10
#include "lldb/API/LLDB.h"
11
#include "lldb/API/SBAddress.h"
12
#include "lldb/API/SBAttachInfo.h"
13
#include "lldb/API/SBBlock.h"
14
#include "lldb/API/SBBreakpoint.h"
15
#include "lldb/API/SBCommandInterpreter.h"
16
#include "lldb/API/SBCommandInterpreterRunOptions.h"
17
#include "lldb/API/SBData.h"
18
#include "lldb/API/SBDebugger.h"
19
#include "lldb/API/SBDeclaration.h"
20
#include "lldb/API/SBError.h"
21
#include "lldb/API/SBFileSpec.h"
22
#include "lldb/API/SBHostOS.h"
23
#include "lldb/Host/FileSystem.h"
24
#include "lldb/Utility/Instrumentation.h"
25
#include "lldb/Version/Version.h"
26
27
using namespace lldb;
28
using namespace lldb_private;
29
using namespace lldb_private::repro;
30
31
SBReplayOptions::SBReplayOptions() {}
32
33
SBReplayOptions::SBReplayOptions(const SBReplayOptions &rhs) {}
34
35
SBReplayOptions::~SBReplayOptions() = default;
36
37
SBReplayOptions &SBReplayOptions::operator=(const SBReplayOptions &rhs) {
38
LLDB_INSTRUMENT_VA(this, rhs)
39
return *this;
40
}
41
42
void SBReplayOptions::SetVerify(bool verify) {
43
LLDB_INSTRUMENT_VA(this, verify);
44
}
45
46
bool SBReplayOptions::GetVerify() const {
47
LLDB_INSTRUMENT_VA(this);
48
return false;
49
}
50
51
void SBReplayOptions::SetCheckVersion(bool check) {
52
LLDB_INSTRUMENT_VA(this, check);
53
}
54
55
bool SBReplayOptions::GetCheckVersion() const {
56
LLDB_INSTRUMENT_VA(this);
57
return false;
58
}
59
60
const char *SBReproducer::Capture() {
61
LLDB_INSTRUMENT()
62
return "Reproducer capture has been removed";
63
}
64
65
const char *SBReproducer::Capture(const char *path) {
66
LLDB_INSTRUMENT_VA(path)
67
return "Reproducer capture has been removed";
68
}
69
70
const char *SBReproducer::PassiveReplay(const char *path) {
71
LLDB_INSTRUMENT_VA(path)
72
return "Reproducer replay has been removed";
73
}
74
75
const char *SBReproducer::Replay(const char *path) {
76
LLDB_INSTRUMENT_VA(path)
77
return "Reproducer replay has been removed";
78
}
79
80
const char *SBReproducer::Replay(const char *path, bool skip_version_check) {
81
LLDB_INSTRUMENT_VA(path, skip_version_check)
82
return "Reproducer replay has been removed";
83
}
84
85
const char *SBReproducer::Replay(const char *path,
86
const SBReplayOptions &options) {
87
LLDB_INSTRUMENT_VA(path, options)
88
return "Reproducer replay has been removed";
89
}
90
91
const char *SBReproducer::Finalize(const char *path) {
92
LLDB_INSTRUMENT_VA(path)
93
return "Reproducer finalize has been removed";
94
}
95
96
bool SBReproducer::Generate() {
97
LLDB_INSTRUMENT()
98
return false;
99
}
100
101
bool SBReproducer::SetAutoGenerate(bool b) {
102
LLDB_INSTRUMENT_VA(b)
103
return false;
104
}
105
106
const char *SBReproducer::GetPath() {
107
LLDB_INSTRUMENT()
108
return "Reproducer GetPath has been removed";
109
}
110
111
void SBReproducer::SetWorkingDirectory(const char *path) {
112
LLDB_INSTRUMENT_VA(path)
113
}
114
115