[Lldb-commits] [lldb] r175776 - Mark the command as failed if parsing fails.

Jim Ingham jingham at apple.com
Thu Feb 21 10:38:46 PST 2013


Author: jingham
Date: Thu Feb 21 12:38:46 2013
New Revision: 175776

URL: http://llvm.org/viewvc/llvm-project?rev=175776&view=rev
Log:
Mark the command as failed if parsing fails.

Modified:
    lldb/trunk/examples/python/cmdtemplate.py

Modified: lldb/trunk/examples/python/cmdtemplate.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/python/cmdtemplate.py?rev=175776&r1=175775&r2=175776&view=diff
==============================================================================
--- lldb/trunk/examples/python/cmdtemplate.py (original)
+++ lldb/trunk/examples/python/cmdtemplate.py Thu Feb 21 12:38:46 2013
@@ -38,6 +38,7 @@ def ls(debugger, command, result, dict):
     try:
         (options, args) = parser.parse_args(command_args)
     except:
+        result.SetStatus (lldb.eReturnStatusFailed)
         return
     
     for arg in args:





More information about the lldb-commits mailing list