Skip to content

Commit 2dca653

Browse files
committed
[Reproducer] Make 'reproducer generate' a NOOP during replay.
Instead of filtering out the 'reproducer generate' command during replay, just make the operation a NOOP. llvm-svn: 355009
1 parent 3e804d2 commit 2dca653

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lldb/source/Commands/CommandObjectReproducer.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,13 @@ class CommandObjectReproducerGenerate : public CommandObjectParsed {
3737
auto &r = repro::Reproducer::Instance();
3838
if (auto generator = r.GetGenerator()) {
3939
generator->Keep();
40+
} else if (r.GetLoader()) {
41+
// Make this operation a NOP in replay mode.
42+
result.SetStatus(eReturnStatusSuccessFinishNoResult);
43+
return result.Succeeded();
4044
} else {
4145
result.AppendErrorWithFormat("Unable to get the reproducer generator");
46+
result.SetStatus(eReturnStatusFailed);
4247
return false;
4348
}
4449

0 commit comments

Comments
 (0)