From d6e4b78595c5b91c25ebdd66adb42da37befc445 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sun, 26 Mar 2006 17:24:02 +0000 Subject: [PATCH] (gdb): Only complain about multiple debugging when the gdb process is still running. --- lisp/ChangeLog | 5 +++++ lisp/progmodes/gud.el | 1 + 2 files changed, 6 insertions(+) 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\"")) -- 2.39.2