def iterate(start, end, step=None):
'''Iterate through all of the instruction and data boundaries from address ``start`` to ``end``.'''
step = step or (address.prev if start > end else address.next)
start, end = __builtin__.map(interface.address.head, (start, end))
op = operator.gt if start > end else operator.lt
while start != idaapi.BADADDR and op(start,end):
yield start
start = step(start)
_, right = config.bounds()
if end < right: yield end
评论列表
文章目录