From: Andreas Schwab Date: Sun, 26 Mar 2006 17:24:02 +0000 (+0000) Subject: (gdb): Only complain about multiple debugging X-Git-Tag: emacs-pretest-22.0.90~3425 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d6e4b78595c5b91c25ebdd66adb42da37befc445;p=emacs.git (gdb): Only complain about multiple debugging when the gdb process is still running. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 946b0858a07..743509e3ad8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2006-03-26 Andreas Schwab + + * progmodes/gud.el (gdb): Only complain about multiple debugging + when the gdb process is still running. + 2006-03-25 Eli Zaretskii * mail/rmail.el (tool-bar-map): Defvar it. diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 7fa5a0b6dcc..907a2e7c300 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el @@ -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\""))