def __getattr__(self, attr): ri = idaapi.reg_info_t() if not idaapi.parse_reg_name(attr, ri): raise AttributeError() r = _reg_dtyp_t(ri.reg, ord(idaapi.get_dtyp_by_size(ri.size))) self.__dict__[attr] = r return r
def get_register_info(reg_name): ri = idaapi.reg_info_t() success = idaapi.parse_reg_name(reg_name, ri) if not success: raise exceptions.SarkInvalidRegisterName( "No register named {!r}".format(reg_name)) return ri
def get_register_info(reg_name): ri = idaapi.reg_info_t() if idaapi.IDA_SDK_VERSION >= 750: success = idaapi.parse_reg_name(ri, reg_name) else: success = idaapi.parse_reg_name(reg_name, ri) if not success: raise exceptions.SarkInvalidRegisterName("No register named {!r}".format(reg_name)) return ri
def get_register_info(reg_name): ri = idaapi.reg_info_t() success = idaapi.parse_reg_name(reg_name, ri) if not success: raise exceptions.SarkInvalidRegisterName("No register named {!r}".format(reg_name)) return ri
def get_register_info(reg_name): ri = idaapi.reg_info_t() success = idaapi.parse_reg_name(reg_name, ri) return ri