mirror of
https://github.com/cemu-project/idapython.git
synced 2024-11-24 18:16:55 +01:00
idc.py: GetFchunkAttr() now calls the IDC implementation and should return identical results
This commit is contained in:
parent
5cb6044277
commit
e64fdf16b3
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user