[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 680e8e1: Fix gdb-mi prompt after "attach PID" com
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] emacs-26 680e8e1: Fix gdb-mi prompt after "attach PID" command |
Date: |
Sat, 4 Nov 2017 07:36:13 -0400 (EDT) |
branch: emacs-26
commit 680e8e119bbdc7782886b92f1df090b08e4a9623
Author: Mike Gulick <address@hidden>
Commit: Eli Zaretskii <address@hidden>
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
---
lisp/progmodes/gdb-mi.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el
index 28d1974..4f366c6 100644
--- a/lisp/progmodes/gdb-mi.el
+++ b/lisp/progmodes/gdb-mi.el
@@ -2188,7 +2188,10 @@ a GDB/MI reply message."
(defun gdbmi-bnf-console-stream-output (c-string)
"Handler for the console-stream-output GDB/MI output grammar rule."
- (gdb-console c-string))
+ (gdb-console c-string)
+ ;; We've written to the GUD console, so we should print the prompt
+ ;; after the next result-class or async-class.
+ (setq gdb-first-done-or-error t))
(defun gdbmi-bnf-target-stream-output (_c-string)
"Handler for the target-stream-output GDB/MI output grammar rule."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 680e8e1: Fix gdb-mi prompt after "attach PID" command,
Eli Zaretskii <=