Skip to content
This repository was archived by the owner on Jul 8, 2025. It is now read-only.

Commit 9e5e3ba

Browse files
author
William Ballenthin
committed
idapython: fix arguments to get_func_cmt
1 parent ad85663 commit 9e5e3ba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

idb/idapython.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,7 @@ def get_func(self, ea):
13281328
else:
13291329
return func
13301330

1331-
def get_func_cmt(self, func, repeatable):
1331+
def get_func_cmt(self, ea, repeatable):
13321332
# function comments are stored on the `$ funcs` netnode
13331333
# tag is either `R` or `C`.
13341334
# index is effective address of the function.
@@ -1345,6 +1345,8 @@ def get_func_cmt(self, func, repeatable):
13451345
#
13461346
# i think its a bug that when you set a repeatable function via the IDA UI,
13471347
# it also sets a local function comment.
1348+
1349+
func = self.get_func(ea)
13481350
if func is None:
13491351
return ''
13501352

0 commit comments

Comments
 (0)