;; a dummy one.
(make-comint-in-buffer
(substring (buffer-name) 1 (- (length (buffer-name)) 1))
- (current-buffer) "/bin/cat")
+ (current-buffer) "cat")
(setq comint-input-sender 'gdb-inferior-io-sender))
(defun gdb-inferior-io-sender (proc string)
(funcall handler))))
(t
(gdb-set-output-sink 'user)
- (error "Output sink phase error 1")))))
+ (error "Phase error in gdb-pre-prompt (got %s)" sink)))))
(defun gdb-prompt (ignored)
"An annotation handler for `prompt'.
(gdb-set-output-sink 'emacs))
(t
(gdb-set-output-sink 'user)
- (error "Output sink phase error 3")))))
+ (error "Phase error in gdb-post-prompt (got %s)" sink)))))
;; If we get an error whilst evaluating one of the expressions
;; we won't get the display-end annotation. Set the sink back to
;;;; Window management
-;;; FIXME: This should only return true for buffers in the current gdb-proc
-(defun gdb-protected-buffer-p (buffer)
- "Is BUFFER a buffer which we want to leave displayed?"
- (with-current-buffer buffer
- (or gdb-buffer-type overlay-arrow-position)))
-
;;; The way we abuse the dedicated-p flag is pretty gross, but seems
;;; to do the right thing. Seeing as there is no way for Lisp code to
;;; get at the use_time field of a window, I'm not sure there exists a