[Lldb-commits] [lldb] r154615 - /lldb/trunk/examples/darwin/heap_find/heap.py
Greg Clayton
gclayton at apple.com
Thu Apr 12 14:06:22 PDT 2012
Author: gclayton
Date: Thu Apr 12 16:06:22 2012
New Revision: 154615
URL: http://llvm.org/viewvc/llvm-project?rev=154615&view=rev
Log:
Fixed some expression issues after switching to void * args.
Modified:
lldb/trunk/examples/darwin/heap_find/heap.py
Modified: lldb/trunk/examples/darwin/heap_find/heap.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/darwin/heap_find/heap.py?rev=154615&r1=154614&r2=154615&view=diff
==============================================================================
--- lldb/trunk/examples/darwin/heap_find/heap.py (original)
+++ lldb/trunk/examples/darwin/heap_find/heap.py Thu Apr 12 16:06:22 2012
@@ -25,13 +25,13 @@
expr = None
arg_str_description = arg_str
if options.type == 'pointer':
- expr = 'find_pointer_in_heap(%s)' % arg_str
+ expr = 'find_pointer_in_heap((void *)%s)' % arg_str
arg_str_description = 'malloc block containing pointer %s' % arg_str
elif options.type == 'cstr':
expr = 'find_cstring_in_heap("%s")' % arg_str
arg_str_description = 'malloc block containing "%s"' % arg_str
elif options.type == 'addr':
- expr = 'find_block_for_address(%s)' % arg_str
+ expr = 'find_block_for_address((void *)%s)' % arg_str
arg_str_description = 'malloc block for %s' % arg_str
else:
print 'error: invalid type "%s"\nvalid values are "pointer", "cstr"' % options.type
More information about the lldb-commits
mailing list