예제 #1
0
    def set_enum(name):
        if (idaapi.get_enum(str(name)) != idaapi.BADADDR):
            idaapi.del_enum(idaapi.get_enum(str(name)))

        ok = idc.add_enum(-1, str(name), 1)
        if not ok:
            print("Could not add enum {name}".format(name=name))
예제 #2
0
def delete(enum):
    '''Delete the enumeration `enum`.'''
    eid = by(enum)
    return idaapi.del_enum(eid)
예제 #3
0
파일: enum.py 프로젝트: boogie1337/Sark
def remove_enum(name):
    """Delete an enum by name."""
    eid = _get_enum(name)
    idaapi.del_enum(eid)
예제 #4
0
def delete(enum):
    '''Delete the enumeration `enum`.'''
    eid = by(enum)
    return idaapi.del_enum(eid)
예제 #5
0
def _delete(identifier):
    return idaapi.del_enum(identifier)
예제 #6
0
def delete(id):
    return idaapi.del_enum(id)