Path: blob/main/contrib/llvm-project/lldb/source/API/SBReproducer.cpp
39587 views
//===-- SBReproducer.cpp --------------------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "lldb/API/SBReproducer.h"9#include "lldb/API/LLDB.h"10#include "lldb/API/SBAddress.h"11#include "lldb/API/SBAttachInfo.h"12#include "lldb/API/SBBlock.h"13#include "lldb/API/SBBreakpoint.h"14#include "lldb/API/SBCommandInterpreter.h"15#include "lldb/API/SBCommandInterpreterRunOptions.h"16#include "lldb/API/SBData.h"17#include "lldb/API/SBDebugger.h"18#include "lldb/API/SBDeclaration.h"19#include "lldb/API/SBError.h"20#include "lldb/API/SBFileSpec.h"21#include "lldb/API/SBHostOS.h"22#include "lldb/Host/FileSystem.h"23#include "lldb/Utility/Instrumentation.h"24#include "lldb/Version/Version.h"2526using namespace lldb;27using namespace lldb_private;28using namespace lldb_private::repro;2930SBReplayOptions::SBReplayOptions() {}3132SBReplayOptions::SBReplayOptions(const SBReplayOptions &rhs) {}3334SBReplayOptions::~SBReplayOptions() = default;3536SBReplayOptions &SBReplayOptions::operator=(const SBReplayOptions &rhs) {37LLDB_INSTRUMENT_VA(this, rhs)38return *this;39}4041void SBReplayOptions::SetVerify(bool verify) {42LLDB_INSTRUMENT_VA(this, verify);43}4445bool SBReplayOptions::GetVerify() const {46LLDB_INSTRUMENT_VA(this);47return false;48}4950void SBReplayOptions::SetCheckVersion(bool check) {51LLDB_INSTRUMENT_VA(this, check);52}5354bool SBReplayOptions::GetCheckVersion() const {55LLDB_INSTRUMENT_VA(this);56return false;57}5859const char *SBReproducer::Capture() {60LLDB_INSTRUMENT()61return "Reproducer capture has been removed";62}6364const char *SBReproducer::Capture(const char *path) {65LLDB_INSTRUMENT_VA(path)66return "Reproducer capture has been removed";67}6869const char *SBReproducer::PassiveReplay(const char *path) {70LLDB_INSTRUMENT_VA(path)71return "Reproducer replay has been removed";72}7374const char *SBReproducer::Replay(const char *path) {75LLDB_INSTRUMENT_VA(path)76return "Reproducer replay has been removed";77}7879const char *SBReproducer::Replay(const char *path, bool skip_version_check) {80LLDB_INSTRUMENT_VA(path, skip_version_check)81return "Reproducer replay has been removed";82}8384const char *SBReproducer::Replay(const char *path,85const SBReplayOptions &options) {86LLDB_INSTRUMENT_VA(path, options)87return "Reproducer replay has been removed";88}8990const char *SBReproducer::Finalize(const char *path) {91LLDB_INSTRUMENT_VA(path)92return "Reproducer finalize has been removed";93}9495bool SBReproducer::Generate() {96LLDB_INSTRUMENT()97return false;98}99100bool SBReproducer::SetAutoGenerate(bool b) {101LLDB_INSTRUMENT_VA(b)102return false;103}104105const char *SBReproducer::GetPath() {106LLDB_INSTRUMENT()107return "Reproducer GetPath has been removed";108}109110void SBReproducer::SetWorkingDirectory(const char *path) {111LLDB_INSTRUMENT_VA(path)112}113114115