From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.help Subject: Re: Emacs and Gud Date: Tue, 8 Jan 2008 13:08:45 +1300 Message-ID: <18306.48909.334536.443032@kahikatea.snap.net.nz> References: <5udbjuF1gu97uU1@mid.individual.net> <5ufn1qF1i2rg8U1@mid.individual.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1199754694 18561 80.91.229.12 (8 Jan 2008 01:11:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Jan 2008 01:11:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 08 02:11:54 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JC30R-0006Zg-Mh for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Jan 2008 02:11:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JC304-0005Sb-H0 for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Jan 2008 20:11:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JC2zm-0005Py-CZ for help-gnu-emacs@gnu.org; Mon, 07 Jan 2008 20:11:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JC2zl-0005OR-21 for help-gnu-emacs@gnu.org; Mon, 07 Jan 2008 20:11:10 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JC2zk-0005OI-Qz for help-gnu-emacs@gnu.org; Mon, 07 Jan 2008 20:11:08 -0500 Original-Received: from viper.snap.net.nz ([202.37.101.8]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JC2zk-0001qG-CX for help-gnu-emacs@gnu.org; Mon, 07 Jan 2008 20:11:08 -0500 Original-Received: from kahikatea.snap.net.nz (206.62.255.123.dynamic.snap.net.nz [123.255.62.206]) by viper.snap.net.nz (Postfix) with ESMTP id 7DCAA3DA70A for ; Tue, 8 Jan 2008 13:08:48 +1300 (NZDT) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 458C68FC6D; Tue, 8 Jan 2008 13:08:46 +1300 (NZDT) Original-Newsgroups: gnu.emacs.help In-Reply-To: <5ufn1qF1i2rg8U1@mid.individual.net> X-Mailer: VM 7.19 under Emacs 23.0.50.25 X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:50570 Archived-At: > If I run GUD with --annotate=1 then I gat the basic two buffer debugging, > and this works OK within an ECB environment. > > With --annotate=2 or --annotate=3, GUD doesn't work properly with ECB. I > get messages like:- > > "error in process filter; Window height 2 too small (after splitting)" Both ECB and gdb-ui (the graphical part of GUD) use something called dedicated windows. This means that they're protective over their window configuration and won't let other buffers display in their windows. > Sometimes it partly works, but usually the GUD menu disappears and so do > most of the debug windows. There seems to be no way to get them back. Maybe 'C-x 5 2' (opens a new frame) followed by M-x gdb-many-windows in the new frame will work > If I deactivate ECB before I start GDB, then both --annotate=2 and > annotate=3 work fine. > > Incidentally, I have set gud-gdb-command-name to > gdb --annotate=3 /home/chris/mydata/Projects/SimSoup/simsoup-cpp/simsoup/simsoup > > I mainly use ECB for programming, and I think that while it would be nice to > have it available while debugging, it is workable without. > > Any thoughts on how to get ECB and GUD working together would however be > welcome. I think there will always be conflicts without a major redesign. ECB isn't part of Emacs and I've never really used it. Ideally ECB would be integrated into Emacs but that would be a lot of work and I don't think it's going to happed anytime soon. If simsoup is a large program and you really need a project based development environment you may be better off using Eclipse with CDT. I guess I shouldn't really be saying that on help-gnu-emacs and you will have to recommend the use of GDB in Emacs to others as a daily pennance! -- Nick http://www.inet.net.nz/~nickrob