def GetIDX(self,ea):
DEBUG_PRINT('IN GetIDX')
idx = -1
comm = str(idc.GetCommentEx(ea, 0))
if '__' not in comm:
print 'no comment here'
return -1
DEBUG_PRINT(comm)
start = comm.find(self._commMarker)+len(self._commMarker)
if self._global == 1:
end = comm.find('_g')
idx = int(comm[start:end])
else:
end = comm.find('_L')
idx = int(comm[start:end]) + self._dbDict[idaapi.get_func(ea).startEA]._idx_list[0][0]
return idx
评论列表
文章目录