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/Utility/Instrumentation.h" |
11 | |
12 | using namespace lldb; |
13 | using namespace lldb_private; |
14 | |
15 | SBReplayOptions::SBReplayOptions() = default; |
16 | |
17 | SBReplayOptions::SBReplayOptions(const SBReplayOptions &rhs) = default; |
18 | |
19 | SBReplayOptions::~SBReplayOptions() = default; |
20 | |
21 | SBReplayOptions &SBReplayOptions::operator=(const SBReplayOptions &rhs) { |
22 | LLDB_INSTRUMENT_VA(this, rhs) |
23 | return *this; |
24 | } |
25 | |
26 | void SBReplayOptions::SetVerify(bool verify) { |
27 | LLDB_INSTRUMENT_VA(this, verify); |
28 | } |
29 | |
30 | bool SBReplayOptions::GetVerify() const { |
31 | LLDB_INSTRUMENT_VA(this); |
32 | return false; |
33 | } |
34 | |
35 | void SBReplayOptions::SetCheckVersion(bool check) { |
36 | LLDB_INSTRUMENT_VA(this, check); |
37 | } |
38 | |
39 | bool SBReplayOptions::GetCheckVersion() const { |
40 | LLDB_INSTRUMENT_VA(this); |
41 | return false; |
42 | } |
43 | |
44 | const char *SBReproducer::Capture() { |
45 | LLDB_INSTRUMENT() |
46 | return "Reproducer capture has been removed" ; |
47 | } |
48 | |
49 | const char *SBReproducer::Capture(const char *path) { |
50 | LLDB_INSTRUMENT_VA(path) |
51 | return "Reproducer capture has been removed" ; |
52 | } |
53 | |
54 | const char *SBReproducer::PassiveReplay(const char *path) { |
55 | LLDB_INSTRUMENT_VA(path) |
56 | return "Reproducer replay has been removed" ; |
57 | } |
58 | |
59 | const char *SBReproducer::Replay(const char *path) { |
60 | LLDB_INSTRUMENT_VA(path) |
61 | return "Reproducer replay has been removed" ; |
62 | } |
63 | |
64 | const char *SBReproducer::Replay(const char *path, bool skip_version_check) { |
65 | LLDB_INSTRUMENT_VA(path, skip_version_check) |
66 | return "Reproducer replay has been removed" ; |
67 | } |
68 | |
69 | const char *SBReproducer::Replay(const char *path, |
70 | const SBReplayOptions &options) { |
71 | LLDB_INSTRUMENT_VA(path, options) |
72 | return "Reproducer replay has been removed" ; |
73 | } |
74 | |
75 | const char *SBReproducer::Finalize(const char *path) { |
76 | LLDB_INSTRUMENT_VA(path) |
77 | return "Reproducer finalize has been removed" ; |
78 | } |
79 | |
80 | bool SBReproducer::Generate() { |
81 | LLDB_INSTRUMENT() |
82 | return false; |
83 | } |
84 | |
85 | bool SBReproducer::SetAutoGenerate(bool b) { |
86 | LLDB_INSTRUMENT_VA(b) |
87 | return false; |
88 | } |
89 | |
90 | const char *SBReproducer::GetPath() { |
91 | LLDB_INSTRUMENT() |
92 | return "Reproducer GetPath has been removed" ; |
93 | } |
94 | |
95 | void SBReproducer::SetWorkingDirectory(const char *path) { |
96 | LLDB_INSTRUMENT_VA(path) |
97 | } |
98 | |