Commit e32ff2e2 authored by Nick Roberts's avatar Nick Roberts
Browse files

(gdb): Pop up current GUD buffer if user

tries to start a second session in graphical mode.
parent ac7b6e9b
......@@ -690,7 +690,10 @@ session."
(buffer-name gud-comint-buffer)
(get-buffer-process gud-comint-buffer)
(with-current-buffer gud-comint-buffer (eq gud-minor-mode 'gdba)))
(error "Multiple debugging requires restarting in text command mode"))
(let ((same-window-regexps))
(display-buffer gud-comint-buffer)
(error
"Multiple debugging requires restarting in text command mode")))
(gud-common-init command-line nil 'gud-gdb-marker-filter)
(set (make-local-variable 'gud-minor-mode) 'gdb)
......
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