def blocks(fn): '''Returns each block in the specified function''' for start,end in chunks(fn): for r in database.blocks(start, end): yield r continue return
def blocks(fn): '''Returns each block in the specified function''' for start, end in chunks(fn): for r in database.blocks(start, end): yield r continue return
def get_blocks(self): func = idaapi.get_func(self.start) b = database.blocks(func.startEA, func.endEA) res = set() for item in b: res.add(item[0]) return list(res)