GDB TUI: view scroll view over current instruction?

I only recently started using GDB, but I was impressed. Unsurprisingly, this is a de facto debugger for many users. However, one slight annoyance that I discovered is that I cannot scroll over the current instruction in the TUI assembly view. I can scroll up and down just fine as long as the display buffer is under the current instruction.

Besides something like x/20i [address](what type of hitting a scrollable window is) or changing memory during a jump and setting a subsequent breakpoint, is there any way to show the TUI assembly in another place that may be higher (lower than the memory) of the current instruction?

Edit: this seems to only happen when connecting to an already running process, and not when using gdb to start the process. Sometimes I can scroll up to the current instruction, otherwise I can not scroll everything.

+4
source share
1 answer

There seems to be some kind of problem with scrolling builds in gdb tui, as you explain, but there is a simple workaround.

So first enable tui view and disassembly by pressing ctrl + x ctrl + a. Then view the dismantling by typing layout asm or something similar.

, , ( - ), , .

:

disass main
disass 0x1234

+3

All Articles