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

cmd_arm64 function failure #18

Closed
dkmcgrath opened this issue Sep 25, 2023 · 1 comment
Closed

cmd_arm64 function failure #18

dkmcgrath opened this issue Sep 25, 2023 · 1 comment

Comments

@dkmcgrath
Copy link

dkmcgrath commented Sep 25, 2023

With the current code in cmd_arm64, when trying to use the arm64 command, I get:

keystone.keystone.KsError: Invalid mode (KS_ERR_MODE)

The reason for this seems to be a change in keystone-engine (I think).

The offending code is

assemble_keystone(keystone.KS_ARCH_ARM64, keystone.KS_MODE_ARM, inst_list)

I believe it should be

assemble_keystone(keystone.KS_ARCH_ARM64, keystone.KS_MODE_LITTLE_ENDIAN, inst_list)

I'm not sure if this is a keystone issue or an issue with lldbinit.

@gdbinit
Copy link
Owner

gdbinit commented Jan 10, 2025

From their sample code you are correct :-) Thanks 👍

@gdbinit gdbinit closed this as completed Jan 10, 2025
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