[Lldb-commits] [lldb] 36eea5c - [Reproducer] Namespace the reproducer dump options.

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Tue Nov 19 16:19:50 PST 2019


Author: Jonas Devlieghere
Date: 2019-11-19T16:19:43-08:00
New Revision: 36eea5c31f13c086c951239ff876564c90546efa

URL: https://github.com/llvm/llvm-project/commit/36eea5c31f13c086c951239ff876564c90546efa
DIFF: https://github.com/llvm/llvm-project/commit/36eea5c31f13c086c951239ff876564c90546efa.diff

LOG: [Reproducer] Namespace the reproducer dump options.

Make it clear that the current reproducer options are for dumping.

Added: 
    

Modified: 
    lldb/source/Commands/CommandObjectReproducer.cpp
    lldb/source/Commands/Options.td

Removed: 
    


################################################################################
diff  --git a/lldb/source/Commands/CommandObjectReproducer.cpp b/lldb/source/Commands/CommandObjectReproducer.cpp
index 560df25b97c6..a22c704ebd0f 100644
--- a/lldb/source/Commands/CommandObjectReproducer.cpp
+++ b/lldb/source/Commands/CommandObjectReproducer.cpp
@@ -68,7 +68,7 @@ static constexpr OptionEnumValues ReproducerProviderType() {
   return OptionEnumValues(g_reproducer_provider_type);
 }
 
-#define LLDB_OPTIONS_reproducer
+#define LLDB_OPTIONS_reproducer_dump
 #include "CommandOptions.inc"
 
 class CommandObjectReproducerGenerate : public CommandObjectParsed {
@@ -208,7 +208,7 @@ class CommandObjectReproducerDump : public CommandObjectParsed {
     }
 
     ArrayRef<OptionDefinition> GetDefinitions() override {
-      return makeArrayRef(g_reproducer_options);
+      return makeArrayRef(g_reproducer_dump_options);
     }
 
     FileSpec file;

diff  --git a/lldb/source/Commands/Options.td b/lldb/source/Commands/Options.td
index fc7f45888bd9..501f81470a2e 100644
--- a/lldb/source/Commands/Options.td
+++ b/lldb/source/Commands/Options.td
@@ -429,7 +429,7 @@ let Command = "log" in {
     Desc<"Prepend the names of files and function that generate the logs.">;
 }
 
-let Command = "reproducer" in {
+let Command = "reproducer dump" in {
   def reproducer_provider : Option<"provider", "p">, Group<1>,
     EnumArg<"None", "ReproducerProviderType()">,
     Required, Desc<"The reproducer provider to dump.">;


        


More information about the lldb-commits mailing list