diff --git a/libbs/__init__.py b/libbs/__init__.py index 7d472e3..b85b587 100644 --- a/libbs/__init__.py +++ b/libbs/__init__.py @@ -1,4 +1,4 @@ -__version__ = "2.8.0" +__version__ = "2.8.1" import logging diff --git a/libbs/decompilers/ida/compat.py b/libbs/decompilers/ida/compat.py index 3505cfe..5936e21 100644 --- a/libbs/decompilers/ida/compat.py +++ b/libbs/decompilers/ida/compat.py @@ -453,6 +453,8 @@ def set_function(func: Function, decompiler_available=True, **kwargs): elif func.header: if func.name: set_ida_func_name(func.addr, func.name) + if ida_code_view is None and decompiler_available: + ida_code_view = acquire_pseudocode_vdui(func.addr) if not headless else DummyIDACodeView(func.addr) changes |= True if func.type: changes |= set_func_ret_type(func.addr, func.type)