diff options
-rw-r--r-- | lldb/source/Commands/CommandObjectReproducer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectReproducer.cpp b/lldb/source/Commands/CommandObjectReproducer.cpp index dc4579c20fc..560df25b97c 100644 --- a/lldb/source/Commands/CommandObjectReproducer.cpp +++ b/lldb/source/Commands/CommandObjectReproducer.cpp @@ -78,7 +78,7 @@ public: interpreter, "reproducer generate", "Generate reproducer on disk. When the debugger is in capture " "mode, this command will output the reproducer to a directory on " - "disk. In replay mode this command in a no-op.", + "disk and quit. In replay mode this command in a no-op.", nullptr) {} ~CommandObjectReproducerGenerate() override = default; @@ -110,7 +110,9 @@ protected: << "Please have a look at the directory to assess if you're willing to " "share the contained information.\n"; - result.SetStatus(eReturnStatusSuccessFinishResult); + m_interpreter.BroadcastEvent( + CommandInterpreter::eBroadcastBitQuitCommandReceived); + result.SetStatus(eReturnStatusQuit); return result.Succeeded(); } }; |