Skip to content

Commit

Permalink
IDA 9 support
Browse files Browse the repository at this point in the history
  • Loading branch information
JustasMasiulis committed Feb 16, 2025
1 parent 22c0f57 commit 02adb09
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,8 @@ else()
endif()

target_link_libraries(bitfields PRIVATE "ida.lib")
target_link_directories(bitfields PRIVATE ${IDA_PATH}/sdk/lib/${IDA_SDK_LIB_ARCH}_${IDA_SDK_LIB_OS}_${IDA_SDK_LIB_BITS}_pro)
target_link_directories(
bitfields PRIVATE
${IDA_PATH}/sdk/lib/${IDA_SDK_LIB_ARCH}_${IDA_SDK_LIB_OS}_${IDA_SDK_LIB_BITS}_pro
${IDA_PATH}/sdk/lib/${IDA_SDK_LIB_ARCH}_${IDA_SDK_LIB_OS}_${IDA_SDK_LIB_BITS}
)
4 changes: 2 additions & 2 deletions plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ inline cexpr_t* create_bitfield_access( access_info& info, udm_t& member, ea_t o
data.flags = FTI_PURE;
data.rettype = member.size == 1 ? tinfo_t{ BTF_BOOL } : common_type;
data.cc = CM_CC_UNKNOWN;
data.push_back( funcarg_t{ .type = info.underlying_expr->type } );
data.push_back( funcarg_t{ .type = common_type } );
data.push_back( funcarg_t{ "", info.underlying_expr->type } );
data.push_back( funcarg_t{ "", common_type } );

tinfo_t functype;
if ( !functype.create_func( data ) )
Expand Down

0 comments on commit 02adb09

Please # to comment.