From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: faraz ahmed Newsgroups: gmane.emacs.help Subject: Re: emacs gdb layout Date: Tue, 20 Jan 2009 21:09:06 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <88e93bc9-8a11-48e0-8f59-b2cc964ba494@p36g2000prp.googlegroups.com> <40829af1-80e7-42fe-8599-10470492135a@f40g2000pri.googlegroups.com> <7e23c0fc-4606-4d5f-9172-1ce2433358f8@r10g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1232519286 10384 80.91.229.12 (21 Jan 2009 06:28:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Jan 2009 06:28:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 21 07:29:19 2009 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 1LPWaU-00083r-JT for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Jan 2009 07:29:18 +0100 Original-Received: from localhost ([127.0.0.1]:59908 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPWZB-0006b8-57 for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Jan 2009 01:27:57 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!r37g2000prr.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 82 Original-NNTP-Posting-Host: 65.113.40.1 Original-X-Trace: posting.google.com 1232514546 5167 127.0.0.1 (21 Jan 2009 05:09:06 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 21 Jan 2009 05:09:06 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r37g2000prr.googlegroups.com; posting-host=65.113.40.1; posting-account=K9t16goAAAD5b7t6WBDDWhw5YWEBOLC8 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008121622 Fedora/3.0.5-1.fc10 Firefox/3.0.5, gzip(gfe), gzip(gfe) X-HTTP-Via: 1.1 osdc-proxy.vmware.com:3128 (squid/2.6.STABLE18) Original-Xref: news.stanford.edu gnu.emacs.help:166201 X-Mailman-Approved-At: Wed, 21 Jan 2009 01:21:35 -0500 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:61523 Archived-At: On Jan 20, 7:10=A0pm, faraz ahmed wrote: > On Jan 20, 6:56=A0pm, faraz ahmed wrote: > > > > > On Jan 20, 1:29=A0am, Richard Riley wrote: > > > > Ritchie writes: > > > >> After start gdb inside emacs with option "--annotation=3D3 --fulln= ame", > > > > > Sorry, that was a typo, what I had in my .emacs originally was > > > > (setq gud-gdb-command-name "gdb --annotate=3D3 --fullname") > > > > which I think is correct. > > > > > The version I'm using is Carbon Emacs =A0(emacs 22) > > > > >> I suggest uou read the debuggers section of the Emacs manual. > > > > > I read the manual, but it didn't work out very well. The manual say= s > > > > "If gdb-many-windows is non-nil, then M-x gdb displays the followin= g > > > > frame layout " > > > > > but when I have the following lines in my .emacs: > > > > > (setq gdb-many-windows t) > > > > (setq gdb-use-separate-io-buffer t) > > > > > and run M-x gdb, i still just get the simple layout. I have to brin= g > > > > out the default > > > > frame layout by giving another two M-x gdb-many-windows. The first = one > > > > is to > > > > disable it, the second one is to enable it again, and then the fram= e > > > > layout will > > > > show up. So I just remove the (setq gdb-many-windows t) from .emacs= , > > > > and > > > > run it manually everytime after I start gdb. > > > > Try cleaning everything out. > > > > (caveat, I use emacs 23 ut I'm fairly sure it worked in Emacs 22 like > > > this too). > > > > I, using the code from here : > > > >http://richardriley.net/default/projects/emacs/dotprogramming#sec-1.2 > > > > run gdb which then prompts (search for f12) > > > > "gdb --annotate=3D3 progname" > > > > And I get something like: > > > >http://richardriley.net/default/projects/images/gud.png > > > > good luck! > > > --annotate=3D3 =A0& --fullpath are _SORT_ of incompatible. > > If you invoke GDB with both the options (i.e fullpath and annot =3D3) > > the annotation level is _SILENTLY_ set to 1, you can check this by > > trying "gdb> show annotation". With the annotation set to 1 (albeit > > silently) your local,stack etc window cannot be displayed.My advice > > would be try giving up the need to specify --fullpath along with > > annotation=3D3, read up on GDB/M1 and experiment :) > > > Just do away with the need of specifying --fullpath and let > > annotation=3D3 as is. > > > -Faraz. > > that would be gdb> show annotate OK. try setting gdb> set annotate 3 after breaking into the target program. -Faraz