summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectReproducer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Commands/CommandObjectReproducer.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectReproducer.cpp16
1 files changed, 2 insertions, 14 deletions
diff --git a/lldb/source/Commands/CommandObjectReproducer.cpp b/lldb/source/Commands/CommandObjectReproducer.cpp
index a1fdb4a1fcd..03a3e230980 100644
--- a/lldb/source/Commands/CommandObjectReproducer.cpp
+++ b/lldb/source/Commands/CommandObjectReproducer.cpp
@@ -143,25 +143,13 @@ protected:
auto &r = repro::Reproducer::Instance();
- if (auto e = r.SetReplayReproducer(true)) {
+ const char *repro_path = command.GetArgumentAtIndex(0);
+ if (auto e = r.SetReplay(FileSpec(repro_path))) {
std::string error_str = llvm::toString(std::move(e));
result.AppendErrorWithFormat("%s", error_str.c_str());
return false;
}
- if (auto loader = r.GetLoader()) {
- const char *repro_path = command.GetArgumentAtIndex(0);
- if (auto e = loader->LoadIndex(FileSpec(repro_path))) {
- std::string error_str = llvm::toString(std::move(e));
- result.AppendErrorWithFormat("Unable to load reproducer: %s",
- error_str.c_str());
- return false;
- }
- } else {
- result.AppendErrorWithFormat("Unable to get the reproducer loader");
- return false;
- }
-
result.SetStatus(eReturnStatusSuccessFinishNoResult);
return result.Succeeded();
}
OpenPOWER on IntegriCloud