diff lisp/comint/gdb.el @ 70:131b0175ea99 r20-0b30

Import from CVS: tag r20-0b30
author cvs
date Mon, 13 Aug 2007 09:02:59 +0200
parents 8fc7fe29b841
children b9518feda344
line wrap: on
line diff
--- a/lisp/comint/gdb.el	Mon Aug 13 09:00:04 2007 +0200
+++ b/lisp/comint/gdb.el	Mon Aug 13 09:02:59 2007 +0200
@@ -20,13 +20,9 @@
 ;; General Public License for more details.
 
 ;; You should have received a copy of the GNU General Public License
-;; along with XEmacs; see the file COPYING.  If not, write to the Free
-;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-;; 02111-1307, USA.
-
-;;; Synched up with: Not in FSF
-
-;;; Commentary:
+;; along with XEmacs; see the file COPYING.  If not, write to the 
+;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+;; Boston, MA 02111-1307, USA.
 
 ;; Description of GDB interface:
 
@@ -62,8 +58,6 @@
 ;; gdb-display-frame is invoked automatically when a filename-and-line-number
 ;; appears in the output.
 
-;;; Code:
-
 (require 'comint)
 (require 'shell)
 
@@ -243,8 +237,6 @@
   (interactive)
   (comint-mode)
   (use-local-map gdb-mode-map)
-  (when (not (boundp 'c-mode-syntax-table))
-    (require 'cc-mode))
   (set-syntax-table c-mode-syntax-table)
   (make-local-variable 'gdb-last-frame-displayed-p)
   (make-local-variable 'gdb-last-frame)
@@ -267,7 +259,7 @@
   ;; XEmacs change:
   (make-local-hook 'kill-buffer-hook)
   (add-hook 'kill-buffer-hook 'gdb-delete-arrow-extent nil t)
-  (add-hook 'comint-input-filter-functions 'shell-directory-tracker nil t)
+  (setq comint-input-sentinel 'shell-directory-tracker)
   (run-hooks 'gdb-mode-hook))
 
 (defun gdb-delete-arrow-extent ()
@@ -652,13 +644,11 @@
     (goto-char (point-max))
     (insert comm)))
 
-(fset 'gdb-control-c-subjob 'comint-interrupt-subjob)
-
-;(defun gdb-control-c-subjob ()
-;  "Send a Control-C to the subprocess."
-;  (interactive)
-;  (process-send-string (get-buffer-process (current-buffer))
-;		       "\C-c"))
+(defun gdb-control-c-subjob ()
+  "Send a Control-C to the subprocess."
+  (interactive)
+  (process-send-string (get-buffer-process (current-buffer))
+		       "\C-c"))
 
 (defun gdb-toolbar-break ()
   (interactive)
@@ -675,5 +665,3 @@
     (gdb-clear)))
 
 (provide 'gdb)
-
-;;; gdb.el ends here