Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Vladimir Prus <ghost@cs.msu.su>
To: Nick Roberts <nickrob@snap.net.nz>, gdb@sources.redhat.com
Subject: Re: -var-list --locals proposal
Date: Tue, 16 Jan 2007 23:12:00 -0000	[thread overview]
Message-ID: <E1H6xSx-0005yC-GD@zigzag.lvk.cs.msu.su> (raw)
In-Reply-To: <17837.22296.701551.796666@kahikatea.snap.net.nz>

Nick Roberts wrote:

>  > So, you either have frame_id->list_of_varobjs mapping in gdb, or in
>  > the frontend. I'm not sure which one is better. If this kept in a
>  > frontend, you'd also need notification "frame id XXX has died" so that
>  > the frontend can clean up its mapping.
> 
> I think there should varobjs that are created from locals 

The above sentence looks grammatically incorrect.

> which get 
> deleted when leaving the frame, and ordinary varobjs (which I guess could
> get deleted
> if they aren't globals).  

I don't think gdb should be deleting any varobjs automatically. It's
easier to program things if all varobj deletion is done by the frontend.

> Normally the user won't create two watch 
> expressions
> for the same variable but I think that should be his business.  I think it
> would be hard to avoid duplication as one watch expression might be a
> child object.

Sorry, I don't quite understand. Can you clarify? I was always thinking that
"watches" (same as gdb CLI "display") would be implemented by creating
"selected frame" varobjs -- and those have nothing to do with -var-list.

>  > We'd need similar thing for function arguments, perhaps -- command like
>  > 
>  > -var-list --arguments
> 
> In Insight arguments are listed alongside locals.  It might be a good idea
> to have:
> 
>   -var-list --args-and-locals
> 
> and perhaps a field to say which is which.  It seems sensible to list them
> all in one window.

Locals are also shown in the stack window. 

- Volodya



  reply	other threads:[~2007-01-16 23:12 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-05 20:04 Vladimir Prus
2007-01-06 10:39 ` Eli Zaretskii
2007-01-06 11:14   ` Vladimir Prus
2007-01-06 11:24     ` Eli Zaretskii
2007-01-06 12:28       ` Vladimir Prus
2007-01-06 21:51         ` Nick Roberts
2007-01-16  6:57           ` Vladimir Prus
2007-01-10  3:38 ` Daniel Jacobowitz
2007-01-16  7:01   ` Vladimir Prus
2007-01-16  7:18     ` Daniel Jacobowitz
2007-01-16 16:20       ` Vladimir Prus
2007-01-16 22:52         ` Nick Roberts
2007-01-16 23:12           ` Vladimir Prus [this message]
2007-01-17  7:54             ` Nick Roberts
2007-01-17 21:34               ` Vladimir Prus

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

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

  git send-email \
    --in-reply-to=E1H6xSx-0005yC-GD@zigzag.lvk.cs.msu.su \
    --to=ghost@cs.msu.su \
    --cc=gdb@sources.redhat.com \
    --cc=nickrob@snap.net.nz \
    /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