decompme / decomp.me

Collaborative decompilation and reverse engineering website
https://decomp.me
MIT License
383 stars 119 forks source link

Scroll to relevant assembly lines from source code #1353

Open 1superchip opened 1 month ago

1superchip commented 1 month ago

Is your feature request related to a problem? Please describe. Since being able to click the line number in the diff window to scroll to the source line, I have found myself scrolling through the assembly to find a function so the assembly and source can be found (finding the function and then clicking the line number to go to the source). It would be nice to be able to scroll to the relevant assembly from the source tab.

Describe the solution you'd like I'm not sure what the solution would be. The assembly has had line numbers displayed by it, so it was mainly the implementation that drove scroll to source line. This is different from what the source has as the source only has the line numbers for source. Adding the assembly offset which would be clickable might work?

Note: In some cases, a single line can map to multiple lines of assembly but scrolling to the first would be enough.