Commit 1236e386 authored by Nick Roberts's avatar Nick Roberts
Browse files

(gud-display-line): Use display-buffer

for GDB-UI as for GUD.
parent f2dab427
......@@ -2587,9 +2587,7 @@ 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)
(if (memq gud-minor-mode '(gdbmi gdba))
(gdb-display-source-buffer buffer)
(display-buffer buffer)))))
(display-buffer buffer))))
(if buffer
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment