cs01 / gdbgui

Browser-based frontend to gdb (gnu debugger). Add breakpoints, view the stack, visualize data structures, and more in C, C++, Go, Rust, and Fortran. Run gdbgui from the terminal and a new tab will open in your browser.
https://gdbgui.com
GNU General Public License v3.0
9.93k stars 499 forks source link

Is it possible to see a separate window for the assembly? #488

Open noamraph opened 4 months ago

noamraph commented 4 months ago

Is your feature request related to a problem? Please describe. I had to debug an executable made with pretty heavy optimizations. Regular stepping through the source code didn't let me understand what's the problem, since a single step just went out of an entire function. What helped me is to step through the assembly. I wanted to use gdbgui, but couldn't find a way to view only the assembly. At the end I used the gdb TUI, which lets me see two separate panes, one with the source code and one with the assembly.

If such a view is already available in gdbgui, then I suggest adding something about it to the documentation. If it isn't available, then it would be a very useful feature for me!

Describe the solution you'd like I would like to have 2 separate panes, one with the source code (as there is now), and one with the assembly, both progressing separately.

Describe alternatives you've considered I saw in screenshots the option of having the assembly together with the source code in the same pane. I don't think I managed to get that, and anyway, I don't see how it would have looked, since when stepping through the assembly, the active line jumps back and forth, so it's not a simple matter of linearly translating each line to a few assembly lines.

Additional context I wasn't sure how to ask this. Perhaps add another category for questions, in addition to bug reports and feature requests?

Thanks a lot! Noam