Skip to content

cstool details does not show total length of each instruction #2679

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

Open
1 of 5 tasks
BAEGregS opened this issue Apr 8, 2025 · 0 comments
Open
1 of 5 tasks

cstool details does not show total length of each instruction #2679

BAEGregS opened this issue Apr 8, 2025 · 0 comments

Comments

@BAEGregS
Copy link

BAEGregS commented Apr 8, 2025

Feature

  • New architecture module
  • Support for processor extension
  • Add more instruction details (elaborated below)
  • Binding support for: language
  • Other (elaborated below)

Describe the feature you'd like
For cstool details, add a line to show the length of the instruction/data unit. I suggest "Len: <bytes>" since that is how the information is stored in the cs_insn structure size field.

Additional context
Add this line before the final printf("\n"); in print_details() function in cstool/cstool.c:

    printf("\tLen: %d\n", ins->size);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants