mirror of
https://github.com/idapython/src
synced 2026-06-08 14:47:00 +00:00
GetFchunkAttr() is reimplemented using idaapi rather than Eval() and IDC (issue 52)
This commit is contained in:
+2
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user