]> git.eshelyaron.com Git - emacs.git/commit
Delete the gdb-inferior pty when the gdb process exits.
authorChong Yidong <cyd@gnu.org>
Thu, 19 Apr 2012 08:09:30 +0000 (16:09 +0800)
committerChong Yidong <cyd@gnu.org>
Thu, 19 Apr 2012 08:09:30 +0000 (16:09 +0800)
commitb668fa6eb0d46a8f3c675954dfd8ce79e6441129
tree3ecf93953301ce744455f7eaa79d2b18d8c3a631
parentc5467d73aea190e3712f1e146c326ad2d94ed0bb
Delete the gdb-inferior pty when the gdb process exits.

* lisp/progmodes/gdb-mi.el (gdb-inferior-io--maybe-delete-pty): New
function to call delete-process on the gdb-inferior buffer's pty.
(gdb-reset): Use it, instead of relying on kill-buffer to kill the
pty process.
(gdb-update): New arg to suppress talking to the gdb process.
(gdb-done-or-error): Use it.
(gdb-stopped-functions): Rename from gdb-stopped-hooks.
(gdb): Call gdb-inferior-io--maybe-delete-pty as a workaround for
sentinel not being called.

* lisp/comint.el (make-comint-in-buffer, comint-exec): Doc fix.

Fixes: debbugs:11273
lisp/ChangeLog
lisp/comint.el
lisp/progmodes/gdb-mi.el