[Lldb-commits] [lldb] r146676 - in /lldb/trunk/test: api/disassemble-raw-data/ python_api/disassemble-raw-data/ python_api/disassemble-raw-data/TestDisassembleRawData.py

Johnny Chen johnny.chen at apple.com
Thu Dec 15 11:56:28 PST 2011


Author: johnny
Date: Thu Dec 15 13:56:28 2011
New Revision: 146676

URL: http://llvm.org/viewvc/llvm-project?rev=146676&view=rev
Log:
Move disassemble-raw-data dir to reside under test/python_api where they belong.
Add debug statements for the raw bytes and the disassembled instruction.

Added:
    lldb/trunk/test/python_api/disassemble-raw-data/
      - copied from r146670, lldb/trunk/test/api/disassemble-raw-data/
Removed:
    lldb/trunk/test/api/disassemble-raw-data/
Modified:
    lldb/trunk/test/python_api/disassemble-raw-data/TestDisassembleRawData.py

Modified: lldb/trunk/test/python_api/disassemble-raw-data/TestDisassembleRawData.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/disassemble-raw-data/TestDisassembleRawData.py?rev=146676&r1=146670&r2=146676&view=diff
==============================================================================
--- lldb/trunk/test/python_api/disassemble-raw-data/TestDisassembleRawData.py (original)
+++ lldb/trunk/test/python_api/disassemble-raw-data/TestDisassembleRawData.py Thu Dec 15 13:56:28 2011
@@ -10,7 +10,7 @@
 
 class DisassembleRawDataTestCase(TestBase):
 
-    mydir = os.path.join("api", "disassemble-raw-data")
+    mydir = os.path.join("python_api", "disassemble-raw-data")
 
     @python_api_test
     def test_disassemble_raw_data(self):
@@ -32,6 +32,11 @@
 
         self.assertTrue (inst.GetMnemonic(target) == "movq")
         self.assertTrue (inst.GetOperands(target) == '%' + "rsp, " + '%' + "rbp")
+
+        if self.TraceOn():
+            print
+            print "Raw bytes:   ", [hex(x) for x in raw_bytes]
+            print "Disassembled:", inst
  
 if __name__ == '__main__':
     import atexit





More information about the lldb-commits mailing list