Fix IDA script API compatibility issues for IDA 9.0 RC1 and 9.1#171
Open
ZERO-A-ONE wants to merge 1 commit intoworawit:mainfrom
Open
Fix IDA script API compatibility issues for IDA 9.0 RC1 and 9.1#171ZERO-A-ONE wants to merge 1 commit intoworawit:mainfrom
ZERO-A-ONE wants to merge 1 commit intoworawit:mainfrom
Conversation
The current IDA script generation will encounter API incompatibility issues in both 9.0 RC1 and 9.1, and the relevant APIs have been fixed to support the new versions.
sparrowhe
reviewed
Dec 11, 2025
| } | ||
| return std::format("Code: {} ({:#x})", code.ToCString(), ep); | ||
| } | ||
| case dart::kArrayCid: |
There was a problem hiding this comment.
Remove this line will cause:
DartDumper.cpp: 685: error: Unhandle internal class _List (90)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
The current IDA script generation encounters API incompatibility issues in both IDA 9.0 RC1 and 9.1. This PR addresses these issues by updating the relevant APIs to support the new versions.
Although there was a previous pull request (#141) that submitted initial compatibility patches for IDA 9.0, compatibility issues still persist in IDA 9.0 RC1 and later versions, as discussed in that PR thread.
Changes Made:
I have referenced the official migration guide (https://docs.hex-rays.com/9.0/developer-guide/idapython/idapython-porting-guide-ida-9) to fix the API issues. The largest changes are due to the removal of two modules:
The APIs have been updated according to the official documentation and tested successfully on my IDA 9.0 RC1 installation.
Notes:
This fix is not compatible with IDA versions below 9.0
More compatibility testing may be needed for broader validation
We may need to consider providing different versions of IDA generation code for different IDA versions in the future
Testing:
Tested and verified working on IDA 9.0 RC1.