# HG changeset patch # User Nick Roberts # Date 1133129762 0 # Node ID c3990f1789051129f2573ad52626ba0c311cfe30 # Parent 3653ab7f7e3caddd4c22c8359ee6e1465a4d3fa0 (gdb-stopped): Detect process when attaching. (gdb-pre-prompt): Make sure gdb-error is reset. diff -r 3653ab7f7e3c -r c3990f178905 lisp/progmodes/gdb-ui.el --- a/lisp/progmodes/gdb-ui.el Sun Nov 27 22:15:03 2005 +0000 +++ b/lisp/progmodes/gdb-ui.el Sun Nov 27 22:16:02 2005 +0000 @@ -1013,6 +1013,7 @@ "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 @@ 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)