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

Display annotated disassembly #6

Open
philipc opened this issue Oct 28, 2017 · 3 comments
Open

Display annotated disassembly #6

philipc opened this issue Oct 28, 2017 · 3 comments

Comments

@philipc
Copy link
Collaborator

philipc commented Oct 28, 2017

Display the disassembled instructions for each function, and annotate with information from the DWARF. Desired information:

  • variables associated with operands of instructions
  • file/line, and inlined function if applicable

Optimization is going to make this hard to display in a sensible manner, but I'm hopeful at least some useful information is possible.

This probably requires HTML output to be usable (see #4).

@luser
Copy link

luser commented Feb 22, 2018

Feel free to crib code from (or massage the code into a reusable crate) my rust-disasm work:
https://github.com/luser/rust-disasm/blob/7097f13828207a13f6f72a50a61e467a817f0ddf/src/lib.rs#L79

@philipc
Copy link
Collaborator Author

philipc commented Feb 22, 2018

Thanks, but I'm already doing disassembly in this crate using panopticon (I use it to find function calls). I need to stick with using panopticon for disassembly; capstone's semantic info is lacking.

@philipc
Copy link
Collaborator Author

philipc commented Mar 16, 2019

I've switched to capstone. Still not convinced its semantic info is complete enough, but it handles what I need so far, and it is more reliable.

ddbug can now output basic disassembly with CFI directives.

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