6

I use gdb-many-windows in emacs for my debugging.

Recently, I discovered how to move a buffer to another X window using C-x 5 2.

I find it convenient: since I use multiple displays, I can have one window with source and variables, and gdb's command line in another window.

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

Does anybody know how to tweak gdb or emacs to do that? Thanks,

piwi
  • 5,136
  • 2
  • 24
  • 48

1 Answers1

1

The value display-buffer-reuse-frames does address exactly this "issue". Session-wide setting in configuration file:

(setq-default display-buffer-reuse-frames t)
piwi
  • 5,136
  • 2
  • 24
  • 48