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: Mon, 7 Jan 2008 16:41:44 +1300 Message-ID: <18305.40824.289212.220875@kahikatea.snap.net.nz> References: <5udbjuF1gu97uU1@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 1199677338 30174 80.91.229.12 (7 Jan 2008 03:42:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2008 03:42:18 +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 04:42:38 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 1JBism-0000vT-68 for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Jan 2008 04:42:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBisP-0003nx-E0 for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Jan 2008 22:42:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JBis4-0003mx-UB for help-gnu-emacs@gnu.org; Sun, 06 Jan 2008 22:41:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JBis4-0003mV-Aj for help-gnu-emacs@gnu.org; Sun, 06 Jan 2008 22:41:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBis4-0003mH-3y for help-gnu-emacs@gnu.org; Sun, 06 Jan 2008 22:41:52 -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 1JBis3-0006WW-8n for help-gnu-emacs@gnu.org; Sun, 06 Jan 2008 22:41:51 -0500 Original-Received: from kahikatea.snap.net.nz (123.30.255.123.static.snap.net.nz [123.255.30.123]) by viper.snap.net.nz (Postfix) with ESMTP id 90ACD3DA63C for ; Mon, 7 Jan 2008 16:41:48 +1300 (NZDT) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 061CA8FC6D; Mon, 7 Jan 2008 16:41:44 +1300 (NZDT) Original-Newsgroups: gnu.emacs.help In-Reply-To: <5udbjuF1gu97uU1@mid.individual.net> X-Mailer: VM 7.19 under Emacs 23.0.50.24 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:50541 Archived-At: > > 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. This is what we call text command mode in the Emacs manual. Its "traditional" GUD that has been part of Emacs 21 and earlier. Its quite basic: there are just two buffers, the GUD buffer for typing GDB commands and the source buffer. I would guess from your surprise and description that you've not used gdb in an earlier version of Emacs. > > 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 --fullname and --annotate=1 are equivalent options in GDB. > > > What value does gud-gdb-command-name have? > > > (gud-gdb-command-name "gdb /home/chris/mydata/Projects/SimSoup/simsoup-cpp/simsoup/simsoup") OK, now I understand. The default option "--annotate=3" is necessary for the operation of the GDB Graphical Interface ("--annotate=2" also works but there are differences). I'll will add a note in the doc string to that effect - thanks. It looks like you only ever debug one program. If that's the case customise gud-gdb-command-name to: "gdb --annotate=3 /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 Emacs might be confused by the previous value. What happens if you customise gud-gdb-command-name to the above value and restart Emacs? -- Nick http://www.inet.net.nz/~nickrob