changeset 69181:c4332666a388

(gud-display-line): Use gdb-display-source-buffer for gdb-ui/gdb-mi (old concept).
author Nick Roberts <nickrob@snap.net.nz>
date Mon, 27 Feb 2006 09:15:58 +0000
parents 9c5c44399069
children 2a047b490abd
files lisp/progmodes/gud.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/gud.el	Mon Feb 27 09:14:59 2006 +0000
+++ b/lisp/progmodes/gud.el	Mon Feb 27 09:15:58 2006 +0000
@@ -2753,9 +2753,10 @@
 	  (with-current-buffer gud-comint-buffer
 	    (gud-find-file true-file)))
 	 (window (and buffer (or (get-buffer-window buffer)
-				   (display-buffer buffer))))
+				 (if (memq gud-minor-mode '(gdbmi gdba))
+				     (gdb-display-source-buffer buffer))
+				 (display-buffer buffer))))
 	 (pos))
-    (message "%s %s" (current-buffer) buffer)
     (if buffer
 	(progn
 	  (with-current-buffer buffer