I've only just started using GDB recently, but I'm super impressed by it. No wonder it's the de-facto debugger for many users. One minor annoyance that I've found, though, is that I find myself unable to scroll above the current instruction in the TUI assembly view. I can scroll up and down just fine so long as display buffer is underneath the current instruction.
Other than something like x/20i [address]
(which kind of defeats the purpose of a scrollable window) or altering the memory with a jump and setting a subsequent breakpoint, is there any way to tell the TUI assembly view to look at another location that might be above (lower memory than) the current instruction?
Edit: This only seems to happen when attached to an already running process, not when using gdb to launch the process. Sometimes I can scroll up until the current instruction, other times I can't scroll up t all.
cgdb
resolved my problem! – MarSoft