Xref: utzoo gnu.emacs.help:665 comp.emacs:9795 Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!compass.com!worley From: worley@compass.com (Dale Worley) Newsgroups: gnu.emacs.help,comp.emacs Subject: Has anyone got gdb-mode to work with cmushell? Message-ID: <9012271551.AA20217@sn1987a.compass.com> Date: 27 Dec 90 15:51:10 GMT Sender: daemon@tut.cis.ohio-state.edu Followup-To: gnu.emacs.help Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu Lines: 31 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.