Patch from dawn@burble.org to make the --silent-run do what it says, not the opposite...
authorJim Ingham <jingham@apple.com>
Tue, 18 Nov 2014 19:12:13 +0000 (19:12 +0000)
committerJim Ingham <jingham@apple.com>
Tue, 18 Nov 2014 19:12:13 +0000 (19:12 +0000)
llvm-svn: 222243

lldb/source/Commands/CommandObjectCommands.cpp

index a1a63cf..d23394e 100644 (file)
@@ -366,7 +366,7 @@ protected:
         // Instance variables to hold the values for command options.
 
         OptionValueBoolean m_stop_on_error;
-           OptionValueBoolean m_silent_run;
+        OptionValueBoolean m_silent_run;
         OptionValueBoolean m_stop_on_continue;
     };
     
@@ -390,8 +390,8 @@ protected:
                 CommandInterpreterRunOptions options;
                 options.SetStopOnContinue(m_options.m_stop_on_continue.GetCurrentValue());
                 options.SetStopOnError (m_options.m_stop_on_error.GetCurrentValue());
-                options.SetEchoCommands (m_options.m_silent_run.GetCurrentValue());
-                options.SetPrintResults (m_options.m_silent_run.GetCurrentValue());
+                options.SetEchoCommands (!m_options.m_silent_run.GetCurrentValue());
+                options.SetPrintResults (!m_options.m_silent_run.GetCurrentValue());
 
                 m_interpreter.HandleCommandsFromFile (cmd_file,
                                                       exe_ctx,