idc.py: GetFchunkAttr() now calls the IDC implementation and should return identical results

This commit is contained in:
gergely.erdelyi 2009-07-12 15:05:49 +00:00
parent 5cb6044277
commit e64fdf16b3

View File

@ -5190,11 +5190,7 @@ def GetFchunkAttr(ea, attr):
@return: desired attribute or -1 @return: desired attribute or -1
""" """
if attr in [ FUNCATTR_START, FUNCATTR_END, FUNCATTR_OWNER, FUNCATTR_REFQTY ]: return Eval("GetFchunkAttr(0x%x, %d);" % (ea, attr))
chunk = idaapi.get_fchunk(ea)
if chunk:
return _IDC_GetAttr(chunk, _FUNCATTRMAP, attr)
return -1
def SetFchunkAttr(ea, attr, value): def SetFchunkAttr(ea, attr, value):