Skip to content

Commit f4fba20

Browse files
authored
[lldb] Remove vestigial remnants of reproducers (llvm#135361)
Not touching the SB API.
1 parent 7940b05 commit f4fba20

File tree

15 files changed

+2
-169
lines changed

15 files changed

+2
-169
lines changed

lldb/include/lldb/API/SBReproducer.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@
1111

1212
#include "lldb/API/SBDefines.h"
1313

14-
namespace lldb_private {
15-
namespace repro {
16-
struct ReplayOptions;
17-
}
18-
} // namespace lldb_private
19-
2014
namespace lldb {
2115

2216
#ifndef SWIG

lldb/include/lldb/Core/Debugger.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ class Stream;
6767
class SymbolContext;
6868
class Target;
6969

70-
namespace repro {
71-
class DataRecorder;
72-
}
73-
7470
/// \class Debugger Debugger.h "lldb/Core/Debugger.h"
7571
/// A class to manage flag bits.
7672
///
@@ -143,8 +139,6 @@ class Debugger : public std::enable_shared_from_this<Debugger>,
143139
return m_error_stream_sp->GetUnlockedFileSP();
144140
}
145141

146-
repro::DataRecorder *GetInputRecorder();
147-
148142
Status SetInputString(const char *data);
149143

150144
void SetInputFile(lldb::FileSP file);
@@ -720,9 +714,6 @@ class Debugger : public std::enable_shared_from_this<Debugger>,
720714
lldb::LockableStreamFileSP m_error_stream_sp;
721715
LockableStreamFile::Mutex m_output_mutex;
722716

723-
/// Used for shadowing the input file when capturing a reproducer.
724-
repro::DataRecorder *m_input_recorder;
725-
726717
lldb::BroadcasterManagerSP m_broadcaster_manager_sp; // The debugger acts as a
727718
// broadcaster manager of
728719
// last resort.

lldb/scripts/reproducer-replay.py

Lines changed: 0 additions & 121 deletions
This file was deleted.

lldb/source/API/SBReproducer.cpp

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,14 @@
77
//===----------------------------------------------------------------------===//
88

99
#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"
2410
#include "lldb/Utility/Instrumentation.h"
25-
#include "lldb/Version/Version.h"
2611

2712
using namespace lldb;
2813
using namespace lldb_private;
29-
using namespace lldb_private::repro;
3014

31-
SBReplayOptions::SBReplayOptions() {}
15+
SBReplayOptions::SBReplayOptions() = default;
3216

33-
SBReplayOptions::SBReplayOptions(const SBReplayOptions &rhs) {}
17+
SBReplayOptions::SBReplayOptions(const SBReplayOptions &rhs) = default;
3418

3519
SBReplayOptions::~SBReplayOptions() = default;
3620

lldb/source/Core/Debugger.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,6 @@ Debugger::Debugger(lldb::LogOutputCallback log_callback, void *baton)
932932
stdout, NativeFile::Unowned, m_output_mutex)),
933933
m_error_stream_sp(std::make_shared<LockableStreamFile>(
934934
stderr, NativeFile::Unowned, m_output_mutex)),
935-
m_input_recorder(nullptr),
936935
m_broadcaster_manager_sp(BroadcasterManager::MakeBroadcasterManager()),
937936
m_terminal_state(), m_target_list(*this), m_platform_list(),
938937
m_listener_sp(Listener::MakeListener("lldb.Debugger")),
@@ -1081,8 +1080,6 @@ void Debugger::SetAsyncExecution(bool async_execution) {
10811080
m_command_interpreter_up->SetSynchronous(!async_execution);
10821081
}
10831082

1084-
repro::DataRecorder *Debugger::GetInputRecorder() { return m_input_recorder; }
1085-
10861083
static inline int OpenPipe(int fds[2], std::size_t size) {
10871084
#ifdef _WIN32
10881085
return _pipe(fds, size, O_BINARY);

lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@
4141
#include "llvm/ADT/StringMap.h"
4242

4343
namespace lldb_private {
44-
namespace repro {
45-
class Loader;
46-
}
4744
namespace process_gdb_remote {
4845

4946
class ThreadGDBRemote;

lldb/unittests/Core/DiagnosticEventTest.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
using namespace lldb;
2424
using namespace lldb_private;
25-
using namespace lldb_private::repro;
2625

2726
static const constexpr std::chrono::seconds TIMEOUT(0);
2827
static const constexpr size_t DEBUGGERS = 3;

lldb/unittests/Interpreter/TestCommandPaths.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include "gtest/gtest.h"
2222

2323
using namespace lldb_private;
24-
using namespace lldb_private::repro;
2524
using namespace lldb;
2625

2726
namespace {

lldb/unittests/Platform/PlatformSiginfoTest.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
using namespace lldb;
2727
using namespace lldb_private;
28-
using namespace lldb_private::repro;
2928

3029
namespace {
3130
class PlatformSiginfoTest : public ::testing::Test {

lldb/unittests/Process/ProcessEventDataTest.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include "gtest/gtest.h"
2121

2222
using namespace lldb_private;
23-
using namespace lldb_private::repro;
2423
using namespace lldb;
2524

2625
namespace {

lldb/unittests/ScriptInterpreter/Lua/ScriptInterpreterTests.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include "gtest/gtest.h"
1717

1818
using namespace lldb_private;
19-
using namespace lldb_private::repro;
2019
using namespace lldb;
2120

2221
namespace {

lldb/unittests/Target/ExecutionContextTest.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include "gtest/gtest.h"
2525

2626
using namespace lldb_private;
27-
using namespace lldb_private::repro;
2827
using namespace lldb;
2928

3029
namespace {

lldb/unittests/Target/MemoryTest.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "gtest/gtest.h"
2020

2121
using namespace lldb_private;
22-
using namespace lldb_private::repro;
2322
using namespace lldb;
2423

2524
namespace {

lldb/unittests/Target/StackFrameRecognizerTest.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "gtest/gtest.h"
2020

2121
using namespace lldb_private;
22-
using namespace lldb_private::repro;
2322
using namespace lldb;
2423

2524
namespace {

lldb/unittests/Thread/ThreadTest.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#include "gtest/gtest.h"
2929

3030
using namespace lldb_private;
31-
using namespace lldb_private::repro;
3231
using namespace lldb;
3332

3433
namespace {

0 commit comments

Comments
 (0)