From the documentation link here: https://www.gnu.org/software/emacs/manual/html_node/emacs/Other-GDB-Buffers.html

When gdb-many-windows is non-nil, the locals buffer shares its window with the registers buffer, just like breakpoints and threads buffers. To switch from one to the other, click with mouse-1 on the relevant button in the header line.

I am in the pure text-based terminal and don't have a mouse. Is there a built-in keyboard shortcut to switch between those two buffers (without having to add any extra configurations in init file)?

Either keyboard shortcut or command (like M-x ...) is preferred.


The answer seems to be a simple tab. The source gdb-mi.el has a defvar for gdb-locals-mode-map which seems to in place in the locals buffer. Look for use of the symbol header-line which is what the feature is called, and then symbols gdb-locals-buffer, gdb-locals-mode.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.