From 7c31db7fc94bdde44e34590e870238975e295827 Mon Sep 17 00:00:00 2001 From: Nick Roberts Date: Sun, 7 Sep 2008 00:52:54 +0000 Subject: [PATCH] (gud-stop-subjob): Using jdb, suspend threads with gud-stop-subjob rather than exit debugger. --- lisp/progmodes/gud.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 00afda923eb..4e56383f3a4 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el @@ -139,7 +139,9 @@ Used to grey out relevant toolbar icons.") (with-current-buffer gud-comint-buffer (if (string-equal gud-target-name "emacs") (comint-stop-subjob) - (comint-interrupt-subjob)))) + (if (eq gud-minor-mode 'jdb) + (gud-call "suspend") + (comint-interrupt-subjob))))) (easy-mmode-defmap gud-menu-map '(([help] "Info (debugger)" . gud-goto-info) -- 2.39.5