diff options
author | Greg Clayton <gclayton@apple.com> | 2013-06-20 01:23:56 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2013-06-20 01:23:56 +0000 |
commit | 694b49f0f8ade5036f6025c83fead31fab01e579 (patch) | |
tree | 39f5554ae9db54d56fbe01a8de0cf180b5de9f3b /lldb/examples/python | |
parent | 0fc4f31e4ba8d1c9e814f00210d8e8f7c381bc57 (diff) | |
download | bcm5719-llvm-694b49f0f8ade5036f6025c83fead31fab01e579.tar.gz bcm5719-llvm-694b49f0f8ade5036f6025c83fead31fab01e579.zip |
Cleanup the output a bit by removing old print statements and also printing the number of types found.
llvm-svn: 184389
Diffstat (limited to 'lldb/examples/python')
-rwxr-xr-x | lldb/examples/python/types.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/examples/python/types.py b/lldb/examples/python/types.py index 83ebbe6e4e1..db1e8cbef12 100755 --- a/lldb/examples/python/types.py +++ b/lldb/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: |