GDB TUI: Scroll assembly view above current instruction?
There seems to be some kind of issue with scrolling assembly in gdb tui like you explain, but a simple workaround exists.
So, first enable tui and disassembly view by pressing ctrl+x ctrl+a. Then show disassembly view by entering layout asm or something similar.
Now that windows should let you scroll with keys or mouse, but if it stops (which for me sometimes happens at beginning of some function) enter the usual disassemble command and disassembly view will update to that location.
Example:
disass main
disass 0x1234
I've found a small hack. If you're in layout asm
mode and you can't scroll to the current instruction you can execute command layout split
and then layout asm
and the first line will be the current one.