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)
This commit is contained in:
parent
2e66013dcf
commit
baceb8e84d
1 changed files with 4 additions and 2 deletions
|
@ -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.
|
||||
(progn
|
||||
(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.")
|
||||
|
|
Loading…
Add table
Reference in a new issue