From e64fdf16b317b2e91d9e5b209811c14a9b0fcb80 Mon Sep 17 00:00:00 2001 From: "gergely.erdelyi" Date: Sun, 12 Jul 2009 15:05:49 +0000 Subject: [PATCH] idc.py: GetFchunkAttr() now calls the IDC implementation and should return identical results --- python/idc.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/python/idc.py b/python/idc.py index 5d891f2..4498b31 100644 --- a/python/idc.py +++ b/python/idc.py @@ -5190,11 +5190,7 @@ def GetFchunkAttr(ea, attr): @return: desired attribute or -1 """ - if attr in [ FUNCATTR_START, FUNCATTR_END, FUNCATTR_OWNER, FUNCATTR_REFQTY ]: - chunk = idaapi.get_fchunk(ea) - if chunk: - return _IDC_GetAttr(chunk, _FUNCATTRMAP, attr) - return -1 + return Eval("GetFchunkAttr(0x%x, %d);" % (ea, attr)) def SetFchunkAttr(ea, attr, value):