From 1bcb26c672a7fa4c60acc9e2c98db56966de7e01 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Thu, 12 Apr 2012 21:06:22 +0000 Subject: [PATCH] Fixed some expression issues after switching to void * args. llvm-svn: 154615 --- lldb/examples/darwin/heap_find/heap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/examples/darwin/heap_find/heap.py b/lldb/examples/darwin/heap_find/heap.py index 982165e90bac..1257348fa33a 100644 --- a/lldb/examples/darwin/heap_find/heap.py +++ b/lldb/examples/darwin/heap_find/heap.py @@ -25,13 +25,13 @@ def heap_search(options, arg_str): 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