Commit f99cf679 authored by Nick Roberts's avatar Nick Roberts
Browse files

(gdb-many-windows): Leave window configuration

intact if there is no gud-comint-buffer.
parent c8010cbb
...@@ -2398,9 +2398,11 @@ of the inferior. Non-nil means display the layout shown for ...@@ -2398,9 +2398,11 @@ of the inferior. Non-nil means display the layout shown for
(if (null arg) (if (null arg)
(not gdb-many-windows) (not gdb-many-windows)
(> (prefix-numeric-value arg) 0))) (> (prefix-numeric-value arg) 0)))
(condition-case nil (if (and gud-comint-buffer
(gdb-restore-windows) (buffer-name gud-comint-buffer))
(error nil))) (condition-case nil
(gdb-restore-windows)
(error nil))))
(defun gdb-restore-windows () (defun gdb-restore-windows ()
"Restore the basic arrangement of windows used by gdba. "Restore the basic arrangement of windows used by gdba.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment