From: Jonas Devlieghere Date: Fri, 3 May 2019 00:10:31 +0000 (+0000) Subject: [Reproducers] Improve reproducer help X-Git-Tag: llvmorg-10-init~6388 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=973d66eefcbbe3dc3a147f73435498846debb872;p=platform%2Fupstream%2Fllvm.git [Reproducers] Improve reproducer help Extend the documentation for the reproducer command. llvm-svn: 359848 --- diff --git a/lldb/source/Commands/CommandObjectReproducer.cpp b/lldb/source/Commands/CommandObjectReproducer.cpp index c80a858..4b0e9e3 100644 --- a/lldb/source/Commands/CommandObjectReproducer.cpp +++ b/lldb/source/Commands/CommandObjectReproducer.cpp @@ -21,8 +21,12 @@ using namespace lldb_private; class CommandObjectReproducerGenerate : public CommandObjectParsed { public: CommandObjectReproducerGenerate(CommandInterpreter &interpreter) - : CommandObjectParsed(interpreter, "reproducer generate", - "Generate reproducer on disk.", nullptr) {} + : CommandObjectParsed( + 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.", + nullptr) {} ~CommandObjectReproducerGenerate() override = default; @@ -61,8 +65,14 @@ protected: class CommandObjectReproducerStatus : public CommandObjectParsed { public: CommandObjectReproducerStatus(CommandInterpreter &interpreter) - : CommandObjectParsed(interpreter, "reproducer status", - "Show the current reproducer status.", nullptr) {} + : CommandObjectParsed( + interpreter, "reproducer status", + "Show the current reproducer status. In capture mode the debugger " + "is collecting all the information it needs to create a " + "reproducer. In replay mode the reproducer is replaying a " + "reproducer. When the reproducers are off, no data is collected " + "and no reproducer can be generated.", + nullptr) {} ~CommandObjectReproducerStatus() override = default; @@ -90,9 +100,10 @@ protected: CommandObjectReproducer::CommandObjectReproducer( CommandInterpreter &interpreter) - : CommandObjectMultiword(interpreter, "reproducer", - "Commands controlling LLDB reproducers.", - "log []") { + : CommandObjectMultiword( + interpreter, "reproducer", + "Commands to inspect and manipulate the reproducer functionality.", + "log []") { LoadSubCommand( "generate", CommandObjectSP(new CommandObjectReproducerGenerate(interpreter)));