aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2020-03-24 16:56:10 +0200
committerEli Zaretskii2020-03-24 16:56:10 +0200
commited37f038bd6d99fbe0c746d5773c315fed0e3dad (patch)
tree6b04a078ae2d14a06ddf5ed65fb24c6cb2f08a55
parent82f8bee734b47e639a931048f9a6ccbfc85a8bb0 (diff)
downloademacs-ed37f038bd6d99fbe0c746d5773c315fed0e3dad.tar.gz
emacs-ed37f038bd6d99fbe0c746d5773c315fed0e3dad.zip
Fix sending signals and EOF to the inferior process in gdb-mi.el
* lisp/progmodes/gdb-mi.el (gdb-io-interrupt, gdb-io-quit) (gdb-io-stop, gdb-io-eof): Send signal/EOF to the inferior process, not to GDB. (Bug#40210)
-rw-r--r--lisp/progmodes/gdb-mi.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el
index ea3b1b816a8..7fb36873918 100644
--- a/lisp/progmodes/gdb-mi.el
+++ b/lisp/progmodes/gdb-mi.el
@@ -1729,25 +1729,25 @@ this trigger is subscribed to `gdb-buf-publisher' and called with
1729 "Interrupt the program being debugged." 1729 "Interrupt the program being debugged."
1730 (interactive) 1730 (interactive)
1731 (interrupt-process 1731 (interrupt-process
1732 (get-buffer-process gud-comint-buffer) comint-ptyp)) 1732 (get-buffer-process (gdb-get-buffer-create 'gdb-inferior-io)) comint-ptyp))
1733 1733
1734(defun gdb-io-quit () 1734(defun gdb-io-quit ()
1735 "Send quit signal to the program being debugged." 1735 "Send quit signal to the program being debugged."
1736 (interactive) 1736 (interactive)
1737 (quit-process 1737 (quit-process
1738 (get-buffer-process gud-comint-buffer) comint-ptyp)) 1738 (get-buffer-process (gdb-get-buffer-create 'gdb-inferior-io)) comint-ptyp))
1739 1739
1740(defun gdb-io-stop () 1740(defun gdb-io-stop ()
1741 "Stop the program being debugged." 1741 "Stop the program being debugged."
1742 (interactive) 1742 (interactive)
1743 (stop-process 1743 (stop-process
1744 (get-buffer-process gud-comint-buffer) comint-ptyp)) 1744 (get-buffer-process (gdb-get-buffer-create 'gdb-inferior-io)) comint-ptyp))
1745 1745
1746(defun gdb-io-eof () 1746(defun gdb-io-eof ()
1747 "Send end-of-file to the program being debugged." 1747 "Send end-of-file to the program being debugged."
1748 (interactive) 1748 (interactive)
1749 (process-send-eof 1749 (process-send-eof
1750 (get-buffer-process gud-comint-buffer))) 1750 (get-buffer-process (gdb-get-buffer-create 'gdb-inferior-io))))
1751 1751
1752(defun gdb-clear-inferior-io () 1752(defun gdb-clear-inferior-io ()
1753 (with-current-buffer (gdb-get-buffer-create 'gdb-inferior-io) 1753 (with-current-buffer (gdb-get-buffer-create 'gdb-inferior-io)