diff options
| -rw-r--r-- | lisp/progmodes/gdb-ui.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index 28fcb70bb8b..19f6306b88a 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el | |||
| @@ -1912,7 +1912,7 @@ static char *magick[] = { | |||
| 1912 | (let* ((buffer (find-file-noselect | 1912 | (let* ((buffer (find-file-noselect |
| 1913 | (if (file-exists-p file) file | 1913 | (if (file-exists-p file) file |
| 1914 | (cdr (assoc bptno gdb-location-alist))))) | 1914 | (cdr (assoc bptno gdb-location-alist))))) |
| 1915 | (window (unless (gdb-display-source-buffer buffer) | 1915 | (window (or (gdb-display-source-buffer buffer) |
| 1916 | (display-buffer buffer)))) | 1916 | (display-buffer buffer)))) |
| 1917 | (setq gdb-source-window window) | 1917 | (setq gdb-source-window window) |
| 1918 | (with-current-buffer buffer | 1918 | (with-current-buffer buffer |
| @@ -2754,6 +2754,7 @@ corresponding to the mode line clicked." | |||
| 2754 | ;; Put buffer list in window if we | 2754 | ;; Put buffer list in window if we |
| 2755 | ;; can't find a source file. | 2755 | ;; can't find a source file. |
| 2756 | (list-buffers-noselect)))) | 2756 | (list-buffers-noselect)))) |
| 2757 | (setq gdb-source-window (selected-window)) | ||
| 2757 | (when gdb-use-separate-io-buffer | 2758 | (when gdb-use-separate-io-buffer |
| 2758 | (split-window-horizontally) | 2759 | (split-window-horizontally) |
| 2759 | (other-window 1) | 2760 | (other-window 1) |
| @@ -2781,6 +2782,7 @@ This arrangement depends on the value of `gdb-many-windows'." | |||
| 2781 | (if gud-last-last-frame | 2782 | (if gud-last-last-frame |
| 2782 | (gud-find-file (car gud-last-last-frame)) | 2783 | (gud-find-file (car gud-last-last-frame)) |
| 2783 | (gud-find-file gdb-main-file))) | 2784 | (gud-find-file gdb-main-file))) |
| 2785 | (setq gdb-source-window (selected-window)) | ||
| 2784 | (other-window 1)))) | 2786 | (other-window 1)))) |
| 2785 | 2787 | ||
| 2786 | (defun gdb-reset () | 2788 | (defun gdb-reset () |