unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: faraz ahmed <faraz.shaikh@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs gdb layout
Date: Tue, 20 Jan 2009 19:10:17 -0800 (PST)	[thread overview]
Message-ID: <c69f0ab5-b29d-41b8-8220-67496a5b6032@p2g2000prn.googlegroups.com> (raw)
In-Reply-To: 7e23c0fc-4606-4d5f-9172-1ce2433358f8@r10g2000prf.googlegroups.com

On Jan 20, 6:56 pm, faraz ahmed <faraz.sha...@gmail.com> wrote:
> On Jan 20, 1:29 am, Richard Riley <rileyrg...@gmail.com> wrote:
>
>
>
> > Ritchie <ritchie...@gmail.com> writes:
> > >> After start gdb inside emacs with option "--annotation=3 --fullname",
>
> > > Sorry, that was a typo, what I had in my .emacs originally was
> > > (setq gud-gdb-command-name "gdb --annotate=3 --fullname")
> > > which I think is correct.
>
> > > The version I'm using is Carbon Emacs  (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 says
> > > "If gdb-many-windows is non-nil, then M-x gdb displays the following
> > > 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 bring
> > > 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 frame
> > > 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=3 progname"
>
> > And I get something like:
>
> >http://richardriley.net/default/projects/images/gud.png
>
> > good luck!
>
> --annotate=3  & --fullpath are _SORT_ of incompatible.
> If you invoke GDB with both the options (i.e fullpath and annot =3)
> 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=3, read up on GDB/M1 and experiment :)
>
> Just do away with the need of specifying --fullpath and let
> annotation=3 as is.
>
> -Faraz.

that would be gdb> show annotate


  reply	other threads:[~2009-01-21  3:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-19  9:57 emacs gdb layout Ritchie
2009-01-19 20:17 ` Nick Roberts
     [not found] ` <mailman.5276.1232398209.26697.help-gnu-emacs@gnu.org>
2009-01-20  2:42   ` Ritchie
2009-01-20  4:19     ` Nick Roberts
2009-01-20  9:29     ` Richard Riley
2009-01-21  2:56       ` faraz ahmed
2009-01-21  3:10         ` faraz ahmed [this message]
2009-01-21  5:09           ` faraz ahmed
2009-01-21  7:49         ` Richard Riley
2009-01-22  3:02           ` faraz ahmed
2009-01-22 15:08             ` Ritchie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c69f0ab5-b29d-41b8-8220-67496a5b6032@p2g2000prn.googlegroups.com \
    --to=faraz.shaikh@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).