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

Add compatibility for Python 3 [ida 7.x syntax] #3

Closed
galaxyhaxz opened this issue Dec 29, 2020 · 2 comments
Closed

Add compatibility for Python 3 [ida 7.x syntax] #3

galaxyhaxz opened this issue Dec 29, 2020 · 2 comments

Comments

@galaxyhaxz
Copy link
Collaborator

Beginning in IDA 7.4 python 3 was introduced and some of the syntax changed. Currently 'sym' will generate scripts containing calls like 'MakeName' that now have different names. I'd say for maximum compatibility we should have a command line arg to set old version Ida, but by default assume python 3.

Cheers, Andi.

@galaxyhaxz
Copy link
Collaborator Author

galaxyhaxz commented Dec 29, 2020

For reference (too tired to fix atm):
https://www.hex-rays.com/products/ida/support/ida74_idapython_no_bc695_porting_guide.shtml

IDA 7.4+ actually do support the older API but it's deprecated and disabled by default.
MakeComm should be renamed to set_cmt

@galaxyhaxz galaxyhaxz changed the title Add compatibility for Python 3 Add compatibility for Python 3 [ida 7.x syntax] Dec 29, 2020
@mewmew
Copy link
Collaborator

mewmew commented Dec 30, 2020

Sounds good. I think we can safely ignore compatibility for older versions of Python, as Python 2.x is officially dead as of 2020-01-01. Lets just update to the newest version of the API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants