Variable: gdb-max-source-window-count

gdb-max-source-window-count is a customizable variable defined in gdb-mi.el.gz.

Value

1

Documentation

Maximum number of source windows to use.

Until there are such number of source windows on screen, GDB tries to open a new window when visiting a new source file; after that GDB starts to reuse existing source windows.

This variable was added, or its default value changed, in Emacs 28.1.

View in manual

Probably introduced at or before Emacs version 28.1.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/gdb-mi.el.gz
(defcustom gdb-max-source-window-count 1
  "Maximum number of source windows to use.
Until there are such number of source windows on screen, GDB
tries to open a new window when visiting a new source file; after
that GDB starts to reuse existing source windows."
  :type 'natnum
  :group 'gdb
  :version "28.1")