1 //===-- SBReproducer.cpp --------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
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"
28 using namespace lldb_private
;
29 using namespace lldb_private::repro
;
31 SBReplayOptions::SBReplayOptions() {}
33 SBReplayOptions::SBReplayOptions(const SBReplayOptions
&rhs
) {}
35 SBReplayOptions::~SBReplayOptions() = default;
37 SBReplayOptions
&SBReplayOptions::operator=(const SBReplayOptions
&rhs
) {
38 LLDB_INSTRUMENT_VA(this, rhs
)
42 void SBReplayOptions::SetVerify(bool verify
) {
43 LLDB_INSTRUMENT_VA(this, verify
);
46 bool SBReplayOptions::GetVerify() const {
47 LLDB_INSTRUMENT_VA(this);
51 void SBReplayOptions::SetCheckVersion(bool check
) {
52 LLDB_INSTRUMENT_VA(this, check
);
55 bool SBReplayOptions::GetCheckVersion() const {
56 LLDB_INSTRUMENT_VA(this);
60 const char *SBReproducer::Capture() {
62 return "Reproducer capture has been removed";
65 const char *SBReproducer::Capture(const char *path
) {
66 LLDB_INSTRUMENT_VA(path
)
67 return "Reproducer capture has been removed";
70 const char *SBReproducer::PassiveReplay(const char *path
) {
71 LLDB_INSTRUMENT_VA(path
)
72 return "Reproducer replay has been removed";
75 const char *SBReproducer::Replay(const char *path
) {
76 LLDB_INSTRUMENT_VA(path
)
77 return "Reproducer replay has been removed";
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";
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";
91 const char *SBReproducer::Finalize(const char *path
) {
92 LLDB_INSTRUMENT_VA(path
)
93 return "Reproducer finalize has been removed";
96 bool SBReproducer::Generate() {
101 bool SBReproducer::SetAutoGenerate(bool b
) {
102 LLDB_INSTRUMENT_VA(b
)
106 const char *SBReproducer::GetPath() {
108 return "Reproducer GetPath has been removed";
111 void SBReproducer::SetWorkingDirectory(const char *path
) {
112 LLDB_INSTRUMENT_VA(path
)