(gdb): Only complain about multiple debugging
authorAndreas Schwab <schwab@suse.de>
Sun, 26 Mar 2006 17:24:02 +0000 (17:24 +0000)
committerAndreas Schwab <schwab@suse.de>
Sun, 26 Mar 2006 17:24:02 +0000 (17:24 +0000)
when the gdb process is still running.

lisp/ChangeLog
lisp/progmodes/gud.el

index 946b085..743509e 100644 (file)
@@ -1,3 +1,8 @@
+2006-03-26  Andreas Schwab  <schwab@suse.de>
+
+       * progmodes/gud.el (gdb): Only complain about multiple debugging
+       when the gdb process is still running.
+
 2006-03-25  Eli Zaretskii  <eliz@gnu.org>
 
        * mail/rmail.el (tool-bar-map): Defvar it.
index 7fa5a0b..907a2e7 100644 (file)
@@ -683,6 +683,7 @@ To run GDB in text command mode, set `gud-gdb-command-name' to
 
   (if (and gud-comint-buffer
           (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 is only supported with \"gdb --fullname\""))