aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/gdb-ui.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el
index 5255b69e08d..c8f1d1db020 100644
--- a/lisp/progmodes/gdb-ui.el
+++ b/lisp/progmodes/gdb-ui.el
@@ -2398,9 +2398,11 @@ of the inferior. Non-nil means display the layout shown for
2398 (if (null arg) 2398 (if (null arg)
2399 (not gdb-many-windows) 2399 (not gdb-many-windows)
2400 (> (prefix-numeric-value arg) 0))) 2400 (> (prefix-numeric-value arg) 0)))
2401 (condition-case nil 2401 (if (and gud-comint-buffer
2402 (gdb-restore-windows) 2402 (buffer-name gud-comint-buffer))
2403 (error nil))) 2403 (condition-case nil
2404 (gdb-restore-windows)
2405 (error nil))))
2404 2406
2405(defun gdb-restore-windows () 2407(defun gdb-restore-windows ()
2406 "Restore the basic arrangement of windows used by gdba. 2408 "Restore the basic arrangement of windows used by gdba.