diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-02-27 17:47:06 +0000 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-02-27 17:47:06 +0000 |
| commit | 2dca65388c8d2ee8661e06e9cc9377ff47522281 (patch) | |
| tree | d8cfa231a8426619b70c5c4ef64f912aeb73e676 /lldb/source/Commands | |
| parent | 3e804d25819877bbc852860a2cc743fcb76a71c7 (diff) | |
| download | bcm5719-llvm-2dca65388c8d2ee8661e06e9cc9377ff47522281.tar.gz bcm5719-llvm-2dca65388c8d2ee8661e06e9cc9377ff47522281.zip | |
[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
Diffstat (limited to 'lldb/source/Commands')
| -rw-r--r-- | lldb/source/Commands/CommandObjectReproducer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectReproducer.cpp b/lldb/source/Commands/CommandObjectReproducer.cpp index 7d2b7ede9a5..c7cdd6491a4 100644 --- a/lldb/source/Commands/CommandObjectReproducer.cpp +++ b/lldb/source/Commands/CommandObjectReproducer.cpp @@ -37,8 +37,13 @@ protected: auto &r = repro::Reproducer::Instance(); if (auto generator = r.GetGenerator()) { generator->Keep(); + } else if (r.GetLoader()) { + // Make this operation a NOP in replay mode. + result.SetStatus(eReturnStatusSuccessFinishNoResult); + return result.Succeeded(); } else { result.AppendErrorWithFormat("Unable to get the reproducer generator"); + result.SetStatus(eReturnStatusFailed); return false; } |

