[Lldb-commits] [lldb] r159284 - /lldb/trunk/examples/darwin/heap_find/heap.py

Greg Clayton gclayton at apple.com
Wed Jun 27 12:57:59 PDT 2012


Author: gclayton
Date: Wed Jun 27 14:57:59 2012
New Revision: 159284

URL: http://llvm.org/viewvc/llvm-project?rev=159284&view=rev
Log:
Check the return status of the make command.


Modified:
    lldb/trunk/examples/darwin/heap_find/heap.py

Modified: lldb/trunk/examples/darwin/heap_find/heap.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/darwin/heap_find/heap.py?rev=159284&r1=159283&r2=159284&view=diff
==============================================================================
--- lldb/trunk/examples/darwin/heap_find/heap.py (original)
+++ lldb/trunk/examples/darwin/heap_find/heap.py Wed Jun 27 14:57:59 2012
@@ -44,8 +44,9 @@
             # Remake the dylib
             make_command = '(cd "%s" ; make EXE="%s" ARCH=%s)' % (heap_code_directory, libheap_dylib_path, string.split(triple, '-')[0])
             # print make_command
-            make_output = commands.getoutput(make_command)
-            # print make_output
+            (make_exit_status, make_output) = commands.getstatusoutput(make_command)
+            if make_exit_status != 0:
+                print make_output
         if os.path.exists(libheap_dylib_path):
             libheap_dylib_spec = lldb.SBFileSpec(libheap_dylib_path)
             if lldb.target.FindModule(libheap_dylib_spec):





More information about the lldb-commits mailing list