unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Richard G Riley <rileyrgdev@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: GUD/GDB in emacs
Date: Thu, 17 Jul 2008 02:11:58 +0200	[thread overview]
Message-ID: <g5m2oi$pdj$1@registered.motzarella.org> (raw)
In-Reply-To: mailman.14873.1216252651.18990.help-gnu-emacs@gnu.org

Nick Roberts <nickrob@snap.net.nz> writes:

>  > When using GUD, can one embed a dereference into one of the panes?
>
> I'm not sure what you mean exactly.  Maybe expand a node in situ in the
> locals buffer, for example.  

That would seem the obvious solution and is the case in other IDEs. e.g
you see "p" in the locals (where p is a pointer to a struct for example)
and then can see the struct by double clicking it for example. Pretty
much what the speedbar does but without the speed bar. (As an aside, if
I mouseclick 2 on a local in the locals buffer then its added to the
speedbar as a watch - it would be more consistent I think if "watch p"
from the gdb command line also did the same if the speedbar is in use,
what do you think?).

>
>  > Currently I can only see *p, for example, if I make it a watch point and
>  > enable the speedbar which is a horrendous waste of screen real
>  > estate. 
>
> If ECB gets integrated into Emacs, I plan to use tree-buffer.el for watch
> expressions instead of the speedbar but I think that they will always need
> their own buffer.

A tree view would be nice in the locals pane or a special watch pane.

>
>  >         Sure I can "display *p" in the *gud* buffer but thats pretty
>  > horrible since it all scrolls past. Any hints or tips and/or references
>  > to good GUD tutorials appreciated.
>
> I think some debuggers use tooltips to expand expressions but I'm not sure
> how that works.

Some do, but they are not convenient or "static" enough. If I have a
pointer in a loop and step around the loop I would like, reasonably
enough I think, to see the pointed to structure change as "p" changes or
its dereferenced contents change. Certainly a tooltip is not the best
for a struct of more than one or two elements.



  parent reply	other threads:[~2008-07-17  0:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-16 22:42 GUD/GDB in emacs Richard G Riley
2008-07-16 23:57 ` Nick Roberts
     [not found] ` <mailman.14873.1216252651.18990.help-gnu-emacs@gnu.org>
2008-07-17  0:11   ` Richard G Riley [this message]
2008-07-17 20:46     ` Nick Roberts
     [not found]     ` <mailman.14905.1216329307.18990.help-gnu-emacs@gnu.org>
2008-07-18  8:30       ` Richard G Riley
2008-07-19  2:03         ` Nick Roberts

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='g5m2oi$pdj$1@registered.motzarella.org' \
    --to=rileyrgdev@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).