[Lldb-commits] [lldb] r129827 - /lldb/trunk/test/stl/TestStdCXXDisassembly.py

Johnny Chen johnny.chen at apple.com
Tue Apr 19 15:32:57 PDT 2011


Author: johnny
Date: Tue Apr 19 17:32:57 2011
New Revision: 129827

URL: http://llvm.org/viewvc/llvm-project?rev=129827&view=rev
Log:
Use self.TraceOn() API.

Modified:
    lldb/trunk/test/stl/TestStdCXXDisassembly.py

Modified: lldb/trunk/test/stl/TestStdCXXDisassembly.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/stl/TestStdCXXDisassembly.py?rev=129827&r1=129826&r2=129827&view=diff
==============================================================================
--- lldb/trunk/test/stl/TestStdCXXDisassembly.py (original)
+++ lldb/trunk/test/stl/TestStdCXXDisassembly.py Tue Apr 19 17:32:57 2011
@@ -94,11 +94,13 @@
             match = codeRE.search(line)
             if match:
                 LA = match.group(1)
-                print "line:", line
-                print "load address:", LA
-                print "SA:", SA
+                if self.TraceOn():
+                    print "line:", line
+                    print "load address:", LA
+                    print "SA:", SA
                 if SA and LA:
-                    self.runCmd("disassemble -s %s -e %s" % (SA, LA))
+                    if int(LA, 16) > int(SA, 16):
+                        self.runCmd("disassemble -s %s -e %s" % (SA, LA))
                 SA = LA
             else:
                 # This entry is not a Code entry.  Reset SA = None.





More information about the lldb-commits mailing list