def colormarks(color=0x7f007f): '''Iterate through all database marks and tag+color their address''' # tag and color f = set() for ea, m in database.marks(): database.tag(ea, 'mark', m) database.color(ea, color) try: f.add(function.top(ea)) except (LookupError, ValueError): pass # tag the functions too for ea in list(f): m = function.marks(ea) function.tag(ea, 'marks', [ea for ea, _ in m]) return
def colormarks(color=0x7f007f): '''Iterate through all database marks and tag+color their address''' # tag and color f = set() for ea,m in database.marks(): database.tag(ea, 'mark', m) database.color(ea, color) try: f.add(function.top(ea)) except ValueError: pass continue # tag the functions too for ea in list(f): m = function.marks(ea) function.tag(ea, 'marks', [ea for ea,_ in m]) return
def colormarks(color=0x7f007f): """Walk through the current list of marks whilst coloring them with the specified `color`. Each mark's address is tagged with its description, and if the address belongs to a function, the function is also tagged with the address of the marks that it contains. """ # tag and color f = set() for ea, m in database.marks(): database.tag(ea, 'mark', m) if database.color(ea) is None: database.color(ea, color) try: f.add(func.top(ea)) except internal.exceptions.FunctionNotFoundError: pass continue # tag the functions too for ea in list(f): m = func.marks(ea) func.tag(ea, 'marks', [ea for ea, _ in m]) return