Commit baceb8e8 authored by Eli Zaretskii's avatar Eli Zaretskii

Allow exiting the Python interpreter of a GDB session

* lisp/progmodes/gdb-mi.el (gdb-delchar-or-quit): Send EOF to GDB
if we are in an embedded interpreter.  This allows to exit from
"pi" cleanly.  (Bug#39140)
parent 2e66013d
Pipeline #4724 failed with stage
in 90 minutes and 1 second
......@@ -1001,8 +1001,10 @@ no input, and GDB is waiting for input."
;; Sending an EOF does not work with GDB-MI; submit an
;; explicit quit command.
(insert "quit")
(comint-send-input t t))
(if (> gdb-control-level 0)
(process-send-eof proc)
(insert "quit")
(comint-send-input t t)))
(delete-char arg))))
(defvar gdb-define-alist nil "Alist of #define directives for GUD tooltips.")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment