From owner-freebsd-questions Wed Jul 30 00:45:29 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id AAA16346 for questions-outgoing; Wed, 30 Jul 1997 00:45:29 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id AAA16218; Wed, 30 Jul 1997 00:43:08 -0700 (PDT) Received: (grog@localhost) by freebie.lemis.com (8.8.6/8.6.12) id RAA00776; Wed, 30 Jul 1997 17:13:02 +0930 (CST) From: grog@FreeBSD.ORG Message-Id: <199707300743.RAA00776@freebie.lemis.com> Subject: Re: gud-mode: gdb inside emacs In-Reply-To: <3.0.1.32.19970729210351.007b4890@popd.ix.netcom.com> from "shegonee@ix.netcom.com" at "Jul 29, 97 09:03:51 pm" To: shegonee@ix.netcom.com Date: Wed, 30 Jul 1997 17:13:02 +0930 (CST) Cc: questions@FreeBSD.ORG Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk shegonee@ix.netcom.com writes: > Hi, > I have a program compiled with the -g option. When I run gdb inside of emacs > it starts gdb fine but doesn't open a second window with the source code > in it. Is there anything else I need to do to get gdb inside emacs > to run and open a second window with the source code file in it? I suppose that this depends on how you started it. If you do M-x gdb, it should prompt you for the name of a program to run. You enter the name of the program, and it opens a new buffer the same window. When you start running the program, it opens a new window in the same frame with the source code. You should then be able to enter gdb commands in the gdb window (which will be called *gdb-*) and look at the source in the other window. Although I'm a great user of both Emacs and gdb, I find that the combination doesn't work very well. I prefer to run gdb from an xterm. Greg