forked from OSchip/llvm-project
Fixed some expression issues after switching to void * args.
llvm-svn: 154615
This commit is contained in:
parent
af2589ea09
commit
1bcb26c672
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue