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