Emacs, GDB and several X windows

I am using gdb-many-windows in emacs for my debugging.

I recently discovered how to move a buffer to another X window using Cx 5 2 .

I find this convenient: since I use several displays, I can have one window with the source and variables and the gdb command line in another window.

But my problem is that I am doing a step-by-step execution in gdb : when it opens a different source file, it does it in the same window where the command line is located, while I expect it to be updated in another window .

Does anyone know how to configure gdb or emacs for this? Thanks,

+6
source share
1 answer

The value display-buffer-reuse-frames makes the address of this particular โ€œproblemโ€ . Session setup in the configuration file:

 (setq-default display-buffer-reuse-frames t) 
+1
source

Source: https://habr.com/ru/post/918364/


All Articles