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 command to get "item" in given offset #14530

Closed
radare opened this issue Jul 9, 2019 · 2 comments
Closed

Add command to get "item" in given offset #14530

radare opened this issue Jul 9, 2019 · 2 comments
Assignees
Milestone

Comments

@radare
Copy link
Collaborator

radare commented Jul 9, 2019

So, the idea is to be able to use that item to iterate to the next and previous item. Those items can be: instructions, structures, comments, xrefs and many other things, which right now are only accessible with separate commands.

  • instruction / data / struct
  • next / previous item
  • comments
  • xrefs
  • ...
@radare radare self-assigned this Jul 9, 2019
@radare radare added this to the 3.7.0 milestone Jul 9, 2019
@jtbennett-fe
Copy link

In IDA Pro, these "items" are called "heads" and you can search for the previous or next head from a given address with https://www.hex-rays.com/products/ida/support/idadoc/265.shtml and https://www.hex-rays.com/products/ida/support/idadoc/264.shtml, respectively. These APIs return the virtual address of the head.

@radare
Copy link
Collaborator Author

radare commented Jul 10, 2019

@jtbennett-fe see #14536 its an early implementation, but it may work for you. it may .. in fact be useful to refactor and fix some bugs in disasm.c.

more comments and ideas are welcome!

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