]> code.delx.au - gnu-emacs/commitdiff
(gud-display-line): Use gdb-display-source-buffer
authorNick Roberts <nickrob@snap.net.nz>
Mon, 27 Feb 2006 09:15:58 +0000 (09:15 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Mon, 27 Feb 2006 09:15:58 +0000 (09:15 +0000)
for gdb-ui/gdb-mi (old concept).

lisp/progmodes/gud.el

index 5a09d5dd196937877c658e90f09abe2820ca64c4..a342eb0b6fcfcbf4e5240f4406b36363033cc659 100644 (file)
@@ -2753,9 +2753,10 @@ Obeying it means displaying in another window the specified file and line."
          (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