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

Get more information about disassembled instructions #34

Open
seritools opened this issue Oct 20, 2023 · 2 comments
Open

Get more information about disassembled instructions #34

seritools opened this issue Oct 20, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@seritools
Copy link
Collaborator

Not sure how feasible this is or how much LLVM provides, but it seems like there isn't a lot of information available about decoded instructions. It's for example not possible to extract arguments or even easily retrieve just the instruction mnemonic.

Because it's generic over multiple architectures it probably won't ever reach the level of detail that something like iced_x86::Instruction has, but a bit more than just the bytes and the entire assembler line would be nice.

@stuxnot stuxnot added the enhancement New feature or request label Oct 24, 2023
@stuxnot
Copy link
Collaborator

stuxnot commented Oct 24, 2023

This is something we would really like to have, but which has proven difficult. While LLVM provies a MCInstrDesc for each instruction, the information in this class are not the greatest, since they need to be generic over all architectures. In the future this should be further explored.

@m4drat
Copy link

m4drat commented Jun 27, 2024

As an example, being able to extract additional information as capstone does would be an immensely useful feature:

$ cstool -d arm "0x00, 0x00, 0x00, 0xEF"
 0  00 00 00 ef  svc    #0
        ID: 216 (svc)
        op_count: 1
                operands[0].type: IMM = 0x0
        Registers read: pc
        Registers modified: lr
        Groups: arm int

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

No branches or pull requests

3 participants