diff options
author | Nick Roberts <nickrob@snap.net.nz> | 2006-02-27 09:15:58 +0000 |
---|---|---|
committer | Nick Roberts <nickrob@snap.net.nz> | 2006-02-27 09:15:58 +0000 |
commit | 5674718576a5ca046f4589450cd509f8b2402694 (patch) | |
tree | 4abba21b4b7cd674ec884af72d824b09ecd25955 /lisp/progmodes/gud.el | |
parent | f27d4d6cdbe088129efe271d5bb6c94440f61e92 (diff) | |
download | emacs-5674718576a5ca046f4589450cd509f8b2402694.tar.gz |
(gud-display-line): Use gdb-display-source-buffer
for gdb-ui/gdb-mi (old concept).
Diffstat (limited to 'lisp/progmodes/gud.el')
-rw-r--r-- | lisp/progmodes/gud.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 5a09d5dd196..a342eb0b6fc 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el @@ -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 |