summaryrefslogtreecommitdiff
path: root/lisp/progmodes/gdb-mi.el
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2010-07-29 15:13:11 +0200
committerMichael Albinus <michael.albinus@gmx.de>2010-07-29 15:13:11 +0200
commit683cc385a444ea49fc75f67e11c12315676972bc (patch)
tree7b0e3e09fdbbd44eddd8804c01611d866b7ce283 /lisp/progmodes/gdb-mi.el
parent8848b728cd609b4ed2667efc0d7eadf3595c8bf0 (diff)
downloademacs-683cc385a444ea49fc75f67e11c12315676972bc.tar.gz
* net/tramp.el (tramp-handle-start-file-process): Check only for
`remote-tty' process property. (tramp-open-shell): Don't check for tty. (tramp-open-connection-setup-interactive-shell): Set `remote-tty' process property. * progmodes/gdb-mi.el (gdb-init-1): Check also for tty on a remote host.
Diffstat (limited to 'lisp/progmodes/gdb-mi.el')
-rw-r--r--lisp/progmodes/gdb-mi.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el
index e4cc32b972c..5b98ff427c3 100644
--- a/lisp/progmodes/gdb-mi.el
+++ b/lisp/progmodes/gdb-mi.el
@@ -795,7 +795,10 @@ detailed description of this mode.
(gdb-input
;; Needs GDB 6.4 onwards
(list (concat "-inferior-tty-set "
- (process-tty-name (get-process "gdb-inferior")))
+ (or
+ ;; The process can run on a remote host.
+ (process-get (get-process "gdb-inferior") 'remote-tty)
+ (process-tty-name (get-process "gdb-inferior"))))
'ignore))
(if (eq window-system 'w32)
(gdb-input (list "-gdb-set new-console off" 'ignore)))