aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2013-06-20 01:23:56 +0000
committerGreg Clayton <gclayton@apple.com>2013-06-20 01:23:56 +0000
commite4513b950e0e31783bff8ecece8723eb1d18901b (patch)
tree1c431175e08914826c95e4514fbc3ab4ae56b8b8 /examples
parentbc46e29ae3579c8585c5df4643a018a9db36b7a6 (diff)
downloadlldb-e4513b950e0e31783bff8ecece8723eb1d18901b.tar.gz
Cleanup the output a bit by removing old print statements and also printing the number of types found.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@184389 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/python/types.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/python/types.py b/examples/python/types.py
index 83ebbe6e4..db1e8cbef 100755
--- a/examples/python/types.py
+++ b/examples/python/types.py
@@ -79,7 +79,7 @@ def verify_type (target, type):
print 'Total pad bytes: %u' % (padding)
if padding > 0:
print 'Padding percentage: %2.2f %%' % ((float(padding) / float(byte_size)) * 100.0)
-
+ print
def verify_type_recursive (target, type, member_name, depth, base_offset, padding):
prev_end_offset = base_offset
@@ -172,7 +172,6 @@ def verify_types (debugger, command_args):
print error.GetCString()
continue
- print target
modules = list()
if len(options.modules) == 0:
# Append just the main executable if nothing was specified
@@ -190,15 +189,16 @@ def verify_types (debugger, command_args):
print 'module: %s' % (module.file)
if options.typenames:
for typename in options.typenames:
- print typename
types = module.FindTypes(typename)
if types.GetSize():
+ print 'Found %u types matching "%s" in "%s"' % (len(types), typename, module.file)
for type in types:
verify_type (target, type)
else:
- print 'error: no type matches "%s"' % (typename)
+ print 'error: no type matches "%s" in "%s"' % (typename, module.file)
else:
types = module.GetTypes(lldb.eTypeClassClass | lldb.eTypeClassStruct)
+ print 'Found %u types in "%s"' % (len(types), module.file)
for type in types:
verify_type (target, type)
else: