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 
SBReplayOptions()31 SBReplayOptions::SBReplayOptions() {}
32 
SBReplayOptions(const SBReplayOptions & rhs)33 SBReplayOptions::SBReplayOptions(const SBReplayOptions &rhs) {}
34 
35 SBReplayOptions::~SBReplayOptions() = default;
36 
operator =(const SBReplayOptions & rhs)37 SBReplayOptions &SBReplayOptions::operator=(const SBReplayOptions &rhs) {
38   LLDB_INSTRUMENT_VA(this, rhs)
39   return *this;
40 }
41 
SetVerify(bool verify)42 void SBReplayOptions::SetVerify(bool verify) {
43   LLDB_INSTRUMENT_VA(this, verify);
44 }
45 
GetVerify() const46 bool SBReplayOptions::GetVerify() const {
47   LLDB_INSTRUMENT_VA(this);
48   return false;
49 }
50 
SetCheckVersion(bool check)51 void SBReplayOptions::SetCheckVersion(bool check) {
52   LLDB_INSTRUMENT_VA(this, check);
53 }
54 
GetCheckVersion() const55 bool SBReplayOptions::GetCheckVersion() const {
56   LLDB_INSTRUMENT_VA(this);
57   return false;
58 }
59 
Capture()60 const char *SBReproducer::Capture() {
61   LLDB_INSTRUMENT()
62   return "Reproducer capture has been removed";
63 }
64 
Capture(const char * path)65 const char *SBReproducer::Capture(const char *path) {
66   LLDB_INSTRUMENT_VA(path)
67   return "Reproducer capture has been removed";
68 }
69 
PassiveReplay(const char * path)70 const char *SBReproducer::PassiveReplay(const char *path) {
71   LLDB_INSTRUMENT_VA(path)
72   return "Reproducer replay has been removed";
73 }
74 
Replay(const char * path)75 const char *SBReproducer::Replay(const char *path) {
76   LLDB_INSTRUMENT_VA(path)
77   return "Reproducer replay has been removed";
78 }
79 
Replay(const char * path,bool skip_version_check)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 
Replay(const char * path,const SBReplayOptions & options)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 
Finalize(const char * path)91 const char *SBReproducer::Finalize(const char *path) {
92   LLDB_INSTRUMENT_VA(path)
93   return "Reproducer finalize has been removed";
94 }
95 
Generate()96 bool SBReproducer::Generate() {
97   LLDB_INSTRUMENT()
98   return false;
99 }
100 
SetAutoGenerate(bool b)101 bool SBReproducer::SetAutoGenerate(bool b) {
102   LLDB_INSTRUMENT_VA(b)
103   return false;
104 }
105 
GetPath()106 const char *SBReproducer::GetPath() {
107   LLDB_INSTRUMENT()
108   return "Reproducer GetPath has been removed";
109 }
110 
SetWorkingDirectory(const char * path)111 void SBReproducer::SetWorkingDirectory(const char *path) {
112   LLDB_INSTRUMENT_VA(path)
113 }
114