Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
Archivo: base.py Proyecto: Noam5/sark2
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
Ejemplo n.º 3
0
 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
Ejemplo n.º 4
0
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
Ejemplo n.º 5
0
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
Ejemplo n.º 6
0
def get_register_info(reg_name):
    ri = idaapi.reg_info_t()
    success = idaapi.parse_reg_name(reg_name, ri)
    return ri
Ejemplo n.º 7
0
def get_register_info(reg_name):
  ri = idaapi.reg_info_t()
  success = idaapi.parse_reg_name(reg_name, ri)
  return ri