def OnSelectLine(self, n): try: item = self.items[n] jump_ea = int(item[0], 16) # Only jump for valid addresses if idc.isEnabled(jump_ea): idc.Jump(jump_ea) except: print "OnSelectLine", sys.exc_info()[1]
def OnSelectLine(self, n): item = self.items[n] jump_ea = int(item[0], 16) # Only jump for valid addresses if idaapi.IDA_SDK_VERSION < 700: valid_addr = idc.isEnabled(jump_ea) else: valid_addr = idc.is_mapped(jump_ea) if valid_addr: idc.Jump(jump_ea)
def get_adrs_mem(ea): """ Get the memory at address according to native size (16, 32 or 64 bit) """ # Verify EA if not idc.isEnabled(ea): return None nativeSize = get_native_size() if nativeSize is 16: return idc.DbgWord(ea) if nativeSize is 32: return idc.DbgDword(ea) if nativeSize is 64: return idc.DbgQword(ea)
def get_adrs_mem(ea): """ Get the memory at address according to native size (16, 32 or 64 bit) """ # Verify EA if not idc.isEnabled(ea): return None nativeSize = get_native_size() if nativeSize is 16: return DbgWord(ea) if nativeSize is 32: return DbgDword(ea) if nativeSize is 64: return DbgQword(ea)