Fixed some expression issues after switching to void * args.

llvm-svn: 154615
This commit is contained in:
Greg Clayton 2012-04-12 21:06:22 +00:00
parent af2589ea09
commit 1bcb26c672
1 changed files with 2 additions and 2 deletions

View File

@ -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