changeset 104256:fdb28981838b

(gdb-inferior-io-mode): Use start-process to create buffer with a pty but no process so that GDB can make the inferior the controlling process.
author Nick Roberts <nickrob@snap.net.nz>
date Thu, 13 Aug 2009 13:22:11 +0000
parents 985e25a22139
children a577041a0370
files lisp/progmodes/gdb-mi.el
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/gdb-mi.el	Thu Aug 13 13:21:46 2009 +0000
+++ b/lisp/progmodes/gdb-mi.el	Thu Aug 13 13:22:11 2009 +0000
@@ -1432,11 +1432,11 @@
 (define-derived-mode gdb-inferior-io-mode comint-mode "Inferior I/O"
   "Major mode for gdb inferior-io."
   :syntax-table nil :abbrev-table nil
-  ;; We want to use comint because it has various nifty and familiar
-  ;; features.  We don't need a process, but comint wants one, so create
-  ;; a dummy one.
-  (make-comint-in-buffer
-   "gdb-inferior" (current-buffer) "sleep" nil "1000000000"))
+  ;; We want to use comint because it has various nifty and familiar features.
+  (start-process "gdb-inferior" 
+;;		 (concat "*input/output of " (gdb-get-target-string) "*")
+		 (current-buffer)
+		 nil))
 
 (defun gdb-inferior-filter (proc string)
   (unless (string-equal string "")