Home | History | Annotate | Download | only in heap_find

Lines Matching refs:parser

212 def append_regex_callback(option, opt, value, parser):
215 parser.values.ivar_regex_blacklist.append(ivar_regex)
219 def add_common_options(parser):
220 parser.add_option('-v', '--verbose', action='store_true', dest='verbose', help='display verbose debug info', default=False)
221 parser.add_option('-t', '--type', action='store_true', dest='print_type', help='print the full value of the type for each matching malloc block', default=False)
222 parser.add_option('-o', '--po', action='store_true', dest='print_object_description', help='print the object descriptions for any matches', default=False)
223 parser.add_option('-z', '--size', action='store_true', dest='show_size', help='print the allocation size in bytes', default=False)
224 parser.add_option('-r', '--range', action='store_true', dest='show_range', help='print the allocation address range instead of just the allocation base address', default=False)
225 parser.add_option('-m', '--memory', action='store_true', dest='memory', help='dump the memory for each matching block', default=False)
226 parser.add_option('-f', '--format', type='string', dest='format', help='the format to use when dumping memory if --memory is specified', default=None)
227 parser.add_option('-I', '--omit-ivar-regex', type='string', action='callback', callback=append_regex_callback, dest='ivar_regex_blacklist', default=[], help='specify one or more regular expressions used to backlist any matches that are in ivars')
228 parser.add_option('-s', '--stack', action='store_true', dest='stack', help='gets the stack that allocated each malloc block if MallocStackLogging is enabled', default=False)
229 parser.add_option('-S', '--stack-history', action='store_true', dest='stack_history', help='gets the stack history for all allocations whose start address matches each malloc block if MallocStackLogging is enabled', default=False)
230 parser.add_option('-F', '--max-frames', type='int', dest='max_frames', help='the maximum number of stack frames to print when using the --stack or --stack-history options (default=128)', default=128)
231 parser.add_option('-H', '--max-history', type='int', dest='max_history', help='the maximum number of stack history backtraces to print for each allocation when using the --stack-history option (default=16)', default=16)
232 parser.add_option('-M', '--max-matches', type='int', dest='max_matches', help='the maximum number of matches to print', default=32)
233 parser.add_option('-O', '--offset', type='int', dest='offset', help='the matching data must be at this offset', default=-1)
234 parser.add_option('--ignore-stack', action='store_false', dest='search_stack', help="Don't search the stack when enumerating memory", default=True)
235 parser.add_option('--ignore-heap', action='store_false', dest='search_heap', help="Don't search the heap allocations when enumerating memory", default=True)
236 parser.add_option('--ignore-segments', action='store_false', dest='search_segments', help="Don't search readable executable segments enumerating memory", default=True)
237 parser.add_option('-V', '--vm-regions', action='store_true', dest='search_vm_regions', help='Check all VM regions instead of searching the heap, stack and segments', default=False)
588 parser = optparse.OptionParser(description=description, prog='ptr_refs',usage=usage)
589 add_common_options(parser)
590 return parser
594 parser = get_ptr_refs_options()
596 (options, args) = parser.parse_args(command_args)
679 parser = optparse.OptionParser(description=description, prog='cstr_refs',usage=usage)
680 add_common_options(parser)
681 return parser
685 parser = get_cstr_refs_options();
687 (options, args) = parser.parse_args(command_args)
774 parser = optparse.OptionParser(description=description, prog='malloc_info',usage=usage)
775 add_common_options(parser)
776 return parser
780 parser = get_malloc_info_options()
782 (options, args) = parser.parse_args(command_args)
912 parser = optparse.OptionParser(description=description, prog='section_ptr_refs',usage=usage)
913 add_common_options(parser)
914 parser.add_option('--section', action='append', type='string', dest='section_names', help='section name to search', default=list())
916 (options, args) = parser.parse_args(command_args)
964 parser = optparse.OptionParser(description=description, prog='objc_refs',usage=usage)
965 add_common_options(parser)
966 return parser
970 parser = get_objc_refs_options()
972 (options, args) = parser.parse_args(command_args)