Beispiel #1
0
def remove_all_refs(ea):
    """Remove all references to something."""
    assert False
    dref_eas = list(drefs_from(ea))
    cref_eas = list(crefs_from(ea))

    for ref_ea in dref_eas:
        idaapi.del_dref(ea, ref_ea)

    for ref_ea in cref_eas:
        idaapi.del_cref(ea, ref_ea, False)
        idaapi.del_cref(ea, ref_ea, True)
Beispiel #2
0
def remove_all_refs(ea):
  """Remove all references to something."""
  assert False
  dref_eas = list(drefs_from(ea))
  cref_eas = list(crefs_from(ea))

  for ref_ea in dref_eas:
    idaapi.del_dref(ea, ref_ea)

  for ref_ea in cref_eas:
    idaapi.del_cref(ea, ref_ea, False)
    idaapi.del_cref(ea, ref_ea, True)
Beispiel #3
0
def del_ref(frm, to):
    idaapi.del_dref(frm, to)
    idaapi.del_dref(to, frm)
    idaapi.del_cref(frm, to, 0)
    idaapi.del_cref(to, frm, 0)
Beispiel #4
0
 def del_code(ea, target=None):
     if target is None:
         [idaapi.del_cref(ea, target, 0) for target in xref.code_down(ea)]
         return False if len(xref.code_down(ea)) > 0 else True
     idaapi.del_cref(ea, target, 0)
     return target not in xref.code_down(ea)
Beispiel #5
0
 def del_code(ea, target=None):
     if target is None:
         [ idaapi.del_cref(ea, target, 0) for target in xref.code_down(ea) ]
         return False if len(xref.code_down(ea)) > 0 else True
     idaapi.del_cref(ea, target, 0)
     return target not in xref.code_down(ea)