From: Nick Roberts <nickrob@snap.net.nz>
Date: Sun, 27 Nov 2005 22:16:02 +0000 (+0000)
Subject: (gdb-stopped): Detect process when attaching.
X-Git-Tag: emacs-pretest-22.0.90~5639
X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=55cd42a4c1898b9d3a1efdf0cd8c36e53eb007c8;p=emacs.git

(gdb-stopped): Detect process when attaching.
(gdb-pre-prompt): Make sure gdb-error is reset.
---

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)