From 55cd42a4c1898b9d3a1efdf0cd8c36e53eb007c8 Mon Sep 17 00:00:00 2001 From: Nick Roberts Date: Sun, 27 Nov 2005 22:16:02 +0000 Subject: [PATCH] (gdb-stopped): Detect process when attaching. (gdb-pre-prompt): Make sure gdb-error is reset. --- lisp/progmodes/gdb-ui.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index 11a1edbbeca..bf4004fabd3 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el @@ -1013,6 +1013,7 @@ This filter may simply queue input for a later time." "An annotation handler for `pre-prompt'. This terminates the collection of output from a previous command if that happens to be in effect." + (setq gdb-error nil) (let ((sink gdb-output-sink)) (cond ((eq sink 'user) t) @@ -1105,6 +1106,7 @@ directives." It is just like `gdb-stopping', except that if we already set the output sink to `user' in `gdb-stopping', that is fine." (setq gud-running nil) + (setq gdb-active-process t) (let ((sink gdb-output-sink)) (cond ((eq sink 'inferior) -- 2.39.5