Vector35 / debugger

Binary Ninja debugger
Other
217 stars 15 forks source link

feature request: branch taken/not taken prediction #83

Open psifertex opened 4 years ago

psifertex commented 4 years ago

see subject

lwerdna commented 4 years ago

Suppose we can predict branches. What do you have in mind that we do with this information?

It would sure look cool to highlight the edge and next node in the graph view.

psifertex commented 4 years ago

Existing debuggers annotate this info in the text to the side of the disassembly quite frequently. I like the idea of highlighting edges better and potentially describing in the annotation"branch taken"

Related: should have the ability to change whether it will be taken or not (could implement by inverting the branch long which we already support or changing the flag register bit

jeffli678 commented 4 years ago

I will love this feature!

xusheng6 commented 2 years ago

This is not trivial to implement, but it is very useful so I added it to the 3.3 milestone

xusheng6 commented 1 year ago

Might first display the info in the UI widget conceived in https://github.com/Vector35/debugger/issues/406.

To actually highlight the branch, some changes from the BN are needed as well

xusheng6 commented 1 month ago

This is partially addressed in https://github.com/Vector35/debugger/issues/406 since the info widget now prints the predication of the taken branch.