aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gulick2017-11-04 13:34:40 +0200
committerEli Zaretskii2017-11-04 13:34:40 +0200
commit680e8e119bbdc7782886b92f1df090b08e4a9623 (patch)
tree512227b88a45f03dd8827a2c874f261c169746fd
parentff3307454631dd9cd0494b4b8a3b4d034e281839 (diff)
downloademacs-680e8e119bbdc7782886b92f1df090b08e4a9623.tar.gz
emacs-680e8e119bbdc7782886b92f1df090b08e4a9623.zip
Fix gdb-mi prompt after "attach PID" command
* lisp/progmodes/gdb-mi.el (gdbmi-bnf-console-stream-output): Set gdb-first-done-or-error non-nil. (Bug#29020) Copyright-paperwork-exempt: yes
-rw-r--r--lisp/progmodes/gdb-mi.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el
index 28d1974893d..4f366c6ede6 100644
--- a/lisp/progmodes/gdb-mi.el
+++ b/lisp/progmodes/gdb-mi.el
@@ -2188,7 +2188,10 @@ a GDB/MI reply message."
2188 2188
2189(defun gdbmi-bnf-console-stream-output (c-string) 2189(defun gdbmi-bnf-console-stream-output (c-string)
2190 "Handler for the console-stream-output GDB/MI output grammar rule." 2190 "Handler for the console-stream-output GDB/MI output grammar rule."
2191 (gdb-console c-string)) 2191 (gdb-console c-string)
2192 ;; We've written to the GUD console, so we should print the prompt
2193 ;; after the next result-class or async-class.
2194 (setq gdb-first-done-or-error t))
2192 2195
2193(defun gdbmi-bnf-target-stream-output (_c-string) 2196(defun gdbmi-bnf-target-stream-output (_c-string)
2194 "Handler for the target-stream-output GDB/MI output grammar rule." 2197 "Handler for the target-stream-output GDB/MI output grammar rule."