debugger icon indicating copy to clipboard operation
debugger copied to clipboard

feature request: branch taken/not taken prediction

Open psifertex opened this issue 5 years ago • 6 comments

see subject

psifertex avatar Apr 06 '20 21:04 psifertex

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.

lwerdna avatar May 18 '20 20:05 lwerdna

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

psifertex avatar May 19 '20 03:05 psifertex

I will love this feature!

jeffli678 avatar Sep 16 '20 16:09 jeffli678

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

xusheng6 avatar Nov 01 '22 09:11 xusheng6

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 avatar Dec 21 '22 08:12 xusheng6