aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2006-05-06 00:34:11 +0000
committerNick Roberts2006-05-06 00:34:11 +0000
commit0745bc2e980a4bc760cdc6d90a5d02a30712e6d9 (patch)
treea784e17f8343d880019f21cb61ccb03aa848ff9e
parent9d74382f6f75aafbd7eab700107bb1e31f640c8a (diff)
downloademacs-0745bc2e980a4bc760cdc6d90a5d02a30712e6d9.tar.gz
emacs-0745bc2e980a4bc760cdc6d90a5d02a30712e6d9.zip
(gdb-goto-breakpoint): Use or instead of unless so nil isn't returned.
(gdb-setup-windows, gdb-restore-windows): Reset gdb-source-window.
-rw-r--r--lisp/progmodes/gdb-ui.el4
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 ()