> (I wish GDB could print a source listing around the breakpoint as context, like Delve, but no such feature exists. The woeful list command is inadequate.) Maybe you can try [cgdb](http://cgdb.github.io/)? It's quite old, but I think it does what you are looking for: a thin wrapper on top of gdb, so you can use all gdb commands while seeing the relevant source code in the top panel.
Thanks for pointing this out. I expected something like GDB's own TUI mode, and initially that even seemed to be the case, but overall it works better. In the GDB TUI, program output interferes with the TUI, and I find myself constantly repainting the display (C-l). It seems cgdb is more like a terminal multiplexer, and program output doesn't interfere (as much) with the display.