Skip to content

Commit 6b639b1

Browse files
authored
Merge pull request #274 from JDevlieghere/cherrypick/0cf86da1741fb1a4278dc31dfc8f1538c9186892
[Reproducer] Quit the debugger after generating a reproducer
2 parents c557706 + aeb1b9b commit 6b639b1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lldb/source/Commands/CommandObjectReproducer.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class CommandObjectReproducerGenerate : public CommandObjectParsed {
7878
interpreter, "reproducer generate",
7979
"Generate reproducer on disk. When the debugger is in capture "
8080
"mode, this command will output the reproducer to a directory on "
81-
"disk. In replay mode this command in a no-op.",
81+
"disk and quit. In replay mode this command in a no-op.",
8282
nullptr) {}
8383

8484
~CommandObjectReproducerGenerate() override = default;
@@ -110,7 +110,9 @@ class CommandObjectReproducerGenerate : public CommandObjectParsed {
110110
<< "Please have a look at the directory to assess if you're willing to "
111111
"share the contained information.\n";
112112

113-
result.SetStatus(eReturnStatusSuccessFinishResult);
113+
m_interpreter.BroadcastEvent(
114+
CommandInterpreter::eBroadcastBitQuitCommandReceived);
115+
result.SetStatus(eReturnStatusQuit);
114116
return result.Succeeded();
115117
}
116118
};

0 commit comments

Comments
 (0)