Function: gdb-many-windows
gdb-many-windows is an interactive and byte-compiled function defined
in gdb-mi.el.gz.
Signature
(gdb-many-windows &optional ARG)
Documentation
If nil just pop up the GUD buffer unless gdb-show-main is t.
In this case it starts with two windows: one displaying the GUD
buffer and the other with the source file with the main routine
of the debugged program. Non-nil means display the layout shown for
gdb.
This is a global minor mode. If called interactively, toggle the
Gdb-Many-Windows mode mode. If the prefix argument is
positive, enable the mode, and if it is zero or negative, disable
the mode.
If called from Lisp, toggle the mode if ARG is toggle. Enable
the mode if ARG is nil, omitted, or is a positive number.
Disable the mode if ARG is a negative number.
To check whether the minor mode is enabled in the current buffer,
evaluate (default-value \=gdb-many-windows)'.
The mode's hook is called both when the mode is enabled and when it is disabled.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/gdb-mi.el.gz
(define-minor-mode gdb-many-windows
"If nil just pop up the GUD buffer unless `gdb-show-main' is t.
In this case it starts with two windows: one displaying the GUD
buffer and the other with the source file with the main routine
of the debugged program. Non-nil means display the layout shown for
`gdb'."
:global t
:group 'gdb
:version "22.1"
(if (and gud-comint-buffer
(buffer-name gud-comint-buffer))
(ignore-errors
(gdb-restore-windows))))