Adds a test for 'target module dump symfile' to the LLDB suite.
authorAshok Thirumurthi <ashok.thirumurthi@intel.com>
Wed, 31 Jul 2013 20:01:04 +0000 (20:01 +0000)
committerAshok Thirumurthi <ashok.thirumurthi@intel.com>
Wed, 31 Jul 2013 20:01:04 +0000 (20:01 +0000)
TODO: Improve coverage of SBTypeMember and of 'target module dump'.
llvm-svn: 187519

lldb/test/lang/c/bitfields/TestBitfields.py

index 50dabd1..a88291e 100644 (file)
@@ -119,6 +119,10 @@ class BitfieldsTestCase(TestBase):
         self.expect("expr (more_bits.d)", VARIABLES_DISPLAYED_CORRECTLY,
             substrs = ['uint8_t', '\\0'])
 
+        self.expect("target modules dump symfile a.out", VARIABLES_DISPLAYED_CORRECTLY,
+            substrs = ['Bits', 'uint32_t b3 : 3',
+                       'MoreBits', 'uint32_t a : 3'])
+
     def bitfields_variable_python(self):
         """Use Python APIs to inspect a bitfields variable."""
         exe = os.path.join(os.getcwd(), "a.out")