diff options
| author | Nick Roberts | 2003-03-31 21:23:45 +0000 |
|---|---|---|
| committer | Nick Roberts | 2003-03-31 21:23:45 +0000 |
| commit | 50df05be573031d0aa8da44eff4f942c425c75d2 (patch) | |
| tree | fc156ac8ef6f7252703c18e87c51ab05d3c0dc6b | |
| parent | 19f093e5ece54700465428b93303f2eadf6a78d6 (diff) | |
| download | emacs-50df05be573031d0aa8da44eff4f942c425c75d2.tar.gz emacs-50df05be573031d0aa8da44eff4f942c425c75d2.zip | |
(gdb-inferior-io-mode): Remove Unix pathname for cat
so that it can run on NT also.
| -rw-r--r-- | lisp/gdb-ui.el | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lisp/gdb-ui.el b/lisp/gdb-ui.el index ad220ff8ec8..325b90bc44c 100644 --- a/lisp/gdb-ui.el +++ b/lisp/gdb-ui.el | |||
| @@ -373,7 +373,7 @@ The key should be one of the cars in `gdb-buffer-rules-assoc'." | |||
| 373 | ;; a dummy one. | 373 | ;; a dummy one. |
| 374 | (make-comint-in-buffer | 374 | (make-comint-in-buffer |
| 375 | (substring (buffer-name) 1 (- (length (buffer-name)) 1)) | 375 | (substring (buffer-name) 1 (- (length (buffer-name)) 1)) |
| 376 | (current-buffer) "/bin/cat") | 376 | (current-buffer) "cat") |
| 377 | (setq comint-input-sender 'gdb-inferior-io-sender)) | 377 | (setq comint-input-sender 'gdb-inferior-io-sender)) |
| 378 | 378 | ||
| 379 | (defun gdb-inferior-io-sender (proc string) | 379 | (defun gdb-inferior-io-sender (proc string) |
| @@ -587,7 +587,7 @@ output from a previous command if that happens to be in effect." | |||
| 587 | (funcall handler)))) | 587 | (funcall handler)))) |
| 588 | (t | 588 | (t |
| 589 | (gdb-set-output-sink 'user) | 589 | (gdb-set-output-sink 'user) |
| 590 | (error "Output sink phase error 1"))))) | 590 | (error "Phase error in gdb-pre-prompt (got %s)" sink))))) |
| 591 | 591 | ||
| 592 | (defun gdb-prompt (ignored) | 592 | (defun gdb-prompt (ignored) |
| 593 | "An annotation handler for `prompt'. | 593 | "An annotation handler for `prompt'. |
| @@ -673,7 +673,7 @@ output from the current command if that happens to be appropriate." | |||
| 673 | (gdb-set-output-sink 'emacs)) | 673 | (gdb-set-output-sink 'emacs)) |
| 674 | (t | 674 | (t |
| 675 | (gdb-set-output-sink 'user) | 675 | (gdb-set-output-sink 'user) |
| 676 | (error "Output sink phase error 3"))))) | 676 | (error "Phase error in gdb-post-prompt (got %s)" sink))))) |
| 677 | 677 | ||
| 678 | ;; If we get an error whilst evaluating one of the expressions | 678 | ;; If we get an error whilst evaluating one of the expressions |
| 679 | ;; we won't get the display-end annotation. Set the sink back to | 679 | ;; we won't get the display-end annotation. Set the sink back to |
| @@ -1779,12 +1779,6 @@ the source buffer." | |||
| 1779 | 1779 | ||
| 1780 | ;;;; Window management | 1780 | ;;;; Window management |
| 1781 | 1781 | ||
| 1782 | ;;; FIXME: This should only return true for buffers in the current gdb-proc | ||
| 1783 | (defun gdb-protected-buffer-p (buffer) | ||
| 1784 | "Is BUFFER a buffer which we want to leave displayed?" | ||
| 1785 | (with-current-buffer buffer | ||
| 1786 | (or gdb-buffer-type overlay-arrow-position))) | ||
| 1787 | |||
| 1788 | ;;; The way we abuse the dedicated-p flag is pretty gross, but seems | 1782 | ;;; The way we abuse the dedicated-p flag is pretty gross, but seems |
| 1789 | ;;; to do the right thing. Seeing as there is no way for Lisp code to | 1783 | ;;; to do the right thing. Seeing as there is no way for Lisp code to |
| 1790 | ;;; get at the use_time field of a window, I'm not sure there exists a | 1784 | ;;; get at the use_time field of a window, I'm not sure there exists a |