mirror of
https://github.com/cemu-project/idapython.git
synced 2024-12-28 18:51:53 +01:00
GetFchunkAttr() is reimplemented using idaapi rather than Eval() and IDC (issue 52)
This commit is contained in:
parent
5b59791156
commit
4b1c3cd4c4
@ -5244,7 +5244,8 @@ def GetFchunkAttr(ea, attr):
|
||||
|
||||
@return: desired attribute or -1
|
||||
"""
|
||||
return Eval("GetFchunkAttr(0x%x, %d);" % (ea, attr))
|
||||
func = idaapi.get_fchunk(ea)
|
||||
return _IDC_GetAttr(func, _FUNCATTRMAP, attr) if func else BADADDR
|
||||
|
||||
|
||||
def SetFchunkAttr(ea, attr, value):
|
||||
|
Loading…
Reference in New Issue
Block a user