From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris Gordon-Smith Newsgroups: gmane.emacs.help Subject: Re: Emacs and Gud Date: Mon, 07 Jan 2008 01:00:42 +0000 Message-ID: <5udbjuF1gu97uU1@mid.individual.net> References: 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 1199673636 21708 80.91.229.12 (7 Jan 2008 02:40:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2008 02:40:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 07 03:40:57 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 1JBhv6-0005SW-Vf for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Jan 2008 03:40:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBhuk-0005ne-38 for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Jan 2008 21:40:34 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 71 Original-X-Trace: individual.net R/HOXjSsOFXNuEzPyQ6nDgzzXdMNejQLGg9KQ7FFLH0O1XYweH Cancel-Lock: sha1:Re4qhQWGPocLUmlN0XheIrbBggg= User-Agent: KNode/0.10.4 Original-Xref: shelby.stanford.edu gnu.emacs.help:155119 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:50540 Archived-At: Nick Roberts wrote: >> > Before Googling, it would be a good idea to read the Emacs manual. >> > Assuming that you have Emacs 22.1 there is a whole section for the GDB >> > Graphical Interface. > >> Yes - That's what Google found > > You shouldn't have to use Google as the Emacs manual is included in the > Emacs tarball, so it should be on your system unless Suse package > documentation separately like Debian. > >> ... >> It says:- > >> Run gdb (like this): >> gdb /home/chris/mydata/Projects/SimSoup/simsoup-cpp/simsoup/simsoup > > That's odd because Emacs 21.x looked like this but Emacs 22.1 should look > like: > > Run gdb (like this): > gdb --annotate=3 > /home/chris/mydata/Projects/SimSoup/simsoup-cpp/simsoup/simsoup > >> simsoup is the name of my program. Hitting enter starts gdb, but only in >> text mode. > >> Since my original posting I have found that if I don't load ECB, then >> graphical debugging works. However, I would like to be able to use both >> ECB and graphical debugging. Any thoughts? > > I've not used ECB but I have read a comment in ecb-compatibility.el that > says that gdb-ui.el's use of dedicated windows might conflict with ECB's > so it's > possible that they have configured Emacs to just use text mode. However, > even in this case Emacs 22.1 should look like this: > > Run gdb (like this): > gdb --fullname > /home/chris/mydata/Projects/SimSoup/simsoup-cpp/simsoup/simsoup > Interesting. This gets me into a graphical mode where I have a source window with a pointer in the fringe by the execution point. However, I still don't have the other debugger windows (stack etc.), and I don't have the little red dot in the fringe by breakpoints. > or this: > > Run gdb (like this): > gdb --annotate=1 > /home/chris/mydata/Projects/SimSoup/simsoup-cpp/simsoup/simsoup > This gives the same as gdb --fullname > What value does gud-gdb-command-name have? > (gud-gdb-command-name "gdb /home/chris/mydata/Projects/SimSoup/simsoup-cpp/simsoup/simsoup") If I try --annotate=2 I get all the debug windows, but now the gdb command line usually won't do anything (eg if I type "list" nothing happens)! I did however get a working system the first time I tried --annotate=2, with the little red dot etc., but no joy since then Thanks for your help so far. Any further thoughts welcome. Chris Gordon-Smith London www.simsoup.info