[comp.emacs] Has anyone got gdb-mode to work with cmushell?

worley@compass.com (Dale Worley) (12/27/90)

   From: samborn@sunrise.com  (Kevin Samborn)

   Has anyone gotten gdb-mode working with cmushell?

I've gotten it to work nicely.  I don't know exactly what I've
changed, but here's at least some of it:

Change (require 'shell) to:
	(require 'cmushell)

In 'gdb-mode', call (comint-mode) before setting major-mode to gdb-mode.

In 'gdb', just before calling (gdb-mode), call
    (make-comint (concat "gdb-" file) gdb-command-name nil "-fullname"
		"-cd" default-directory file)

I've also added this to my .emacs file to make sure that the
comint-prompt-regexp matches the GDB prompt, but it should probably be
folded into gdb.el also:
      (setq gdb-mode-hook
	    (cons (function (lambda ()
			      (setq comint-prompt-regexp gdb-prompt-pattern)))
		  gdb-mode-hook))

Dale

Dale Worley		Compass, Inc.			worley@compass.com
--
If you take an infinite number of monkeys and an infinite number of
Crays for an infinite amount of time, they'll finally finish writing Gnu.