Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[binexport] Refactor ISA guessing heuristic #43

Merged
merged 4 commits into from
Nov 12, 2023
Merged

Conversation

patacca
Copy link
Collaborator

@patacca patacca commented Nov 12, 2023

Better logging messages and clean the code for the ISA guessing heuristics (only used when the architecture is not manually specified)

Add warnings when having to rely on context guess and use thumb when the
instruction is 2 bytes.
Beware that IDA sometimes likes to merge two (or more?) thumb
instructions together.
@patacca patacca added the refactoring Refactoring part of the code label Nov 12, 2023
@patacca patacca requested a review from RobinDavid November 12, 2023 11:46
@RobinDavid
Copy link
Collaborator

As we can now specify the arch+mode through command line, I am not sure we want to keep guessing the mode dynamically. We could just fail gently if the user supply ARM binaries without the associated arch+mode. The code is looking way better. Let's keep it.

@RobinDavid RobinDavid merged commit cb85b74 into main Nov 12, 2023
@patacca patacca deleted the fix_binexport_context branch November 19, 2023 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Refactoring part of the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants