[Lldb-commits] [lldb] r116320 - /lldb/trunk/source/Interpreter/CommandObjectRegexCommand.cpp

Greg Clayton gclayton at apple.com
Tue Oct 12 11:04:53 PDT 2010


Author: gclayton
Date: Tue Oct 12 13:04:53 2010
New Revision: 116320

URL: http://llvm.org/viewvc/llvm-project?rev=116320&view=rev
Log:
Regular expression commands now print the command that results from expanding the regular expression command.

Modified:
    lldb/trunk/source/Interpreter/CommandObjectRegexCommand.cpp

Modified: lldb/trunk/source/Interpreter/CommandObjectRegexCommand.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/CommandObjectRegexCommand.cpp?rev=116320&r1=116319&r2=116320&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/CommandObjectRegexCommand.cpp (original)
+++ lldb/trunk/source/Interpreter/CommandObjectRegexCommand.cpp Tue Oct 12 13:04:53 2010
@@ -87,15 +87,14 @@
                     }
                 }
                 // Interpret the new command and return this as the result!
-//                if (m_options.verbose)
-//                    result.GetOutputStream().Printf("%s\n", new_command.c_str());
+                result.GetOutputStream().Printf("%s\n", new_command.c_str());
                 return m_interpreter.HandleCommand(new_command.c_str(), true, result);
             }
         }
         result.SetStatus(eReturnStatusFailed);
-        result.AppendErrorWithFormat("Command contents '%s' failed to match any regular expression in the '%s' regex command.\n",
-                                    command,
-                                    m_cmd_name.c_str());
+        result.AppendErrorWithFormat ("Command contents '%s' failed to match any regular expression in the '%s' regex command.\n",
+                                      command,
+                                      m_cmd_name.c_str());
         return false;
     }
     result.AppendError("empty command passed to regular exression command");





More information about the lldb-commits mailing list