Function: gdb-restore-windows
gdb-restore-windows is an interactive and byte-compiled function
defined in gdb-mi.el.gz.
Signature
(gdb-restore-windows)
Documentation
Restore the basic arrangement of windows used by gdb.
This arrangement depends on the values of variable
gdb-many-windows(var)/gdb-many-windows(fun) and gdb-default-window-configuration-file.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/gdb-mi.el.gz
(defun gdb-restore-windows ()
"Restore the basic arrangement of windows used by gdb.
This arrangement depends on the values of variable
`gdb-many-windows' and `gdb-default-window-configuration-file'."
;; This function is used when the user messed up window
;; configuration and wants to "reset to default". The function that
;; sets up window configuration on start up is
;; `gdb-get-source-file'.
(interactive)
(switch-to-buffer gud-comint-buffer) ;Select the right window and frame.
(delete-other-windows)
(if gdb-many-windows
(gdb-setup-windows)
(when (or gud-last-last-frame gdb-show-main)
(let ((win (split-window)))
(set-window-buffer
win
(if gud-last-last-frame
(gud-find-file (car gud-last-last-frame))
(gud-find-file gdb-main-file)))
(setq gdb-source-window-list (list win))))))