Vector35 / Vector35/binaryninja-api
Add PluginCommands IL instructions and expressions
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.3k
- Forks
- 298
- Avg merge
- 5d 5h
- Merged PRs (30d)
- 19
Description
What is the feature you'd like to have?
There is already register_for_xxx_level_il_instruction handlers, it would be awesome to have same thing for expressions (or sub-instructions, as all of them is just an instruction types), to be able to distinguish cases when plugin is triggered when cursor is focused on token instead of whole line. Currently no matter where focus is, the ILInstruction provided to handler would be the whole instruction on the line.
Are any alternative solutions acceptable?
Well, currently UIAction can do all of this, but IMHO in that way there is unnecessary legwork to do.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the existing register_for_xxx_level_il_instruction handlers and how they receive the whole line instruction. Compare that behavior with the UIAction workaround described in the issue. Done means plugins can register handlers for expression or sub-instruction IL elements and receive the element associated with the focused token rather than always the whole line instruction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- api, reverse-engineering
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100