Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Vladimir Prus <ghost@cs.msu.su>
To: gdb-patches@sources.redhat.com
Subject: Re: Type information in -data-evaluate-expression
Date: Tue, 31 Jul 2007 10:14:00 -0000	[thread overview]
Message-ID: <f8n02k$se7$1@sea.gmane.org> (raw)
In-Reply-To: <18094.60992.646812.570359@kahikatea.snap.net.nz>

Nick Roberts wrote:

> Here's another example where tooltips using -data-evaluate-expression
> might not work:
> 
>   int i;
>   i = 1;
>   {
>     int i;
>     i = 10;
> =>  i++;
>   }
> 
> If execution is at the arrow, the user might place the mouse over the
> first
> occurrence of i and expect the value 1 to be displayed.  However, since
> -data-evaluate-expression evaluates relative to the current line, 10 would
> actually be displayed.

Not that it works with variable objects, anyway. OTOH, I think
expanding -var-create so that it takes "context line" where expression
is to be evaluated should be rather simple.

- Volodya


 



  parent reply	other threads:[~2007-07-31  9:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-30 13:52 André Pönitz
2007-07-30 15:34 ` Vladimir Prus
2007-07-30 17:06   ` André Pönitz
2007-07-30 23:17     ` Nick Roberts
     [not found]       ` <200707310922.14919.apoenitz@trolltech.com>
2007-07-31  9:13         ` Nick Roberts
2007-07-31  9:40           ` André Pönitz
2007-07-31 10:39             ` Nick Roberts
2007-07-31 11:02               ` Vladimir Prus
2007-07-31 11:25                 ` Nick Roberts
2007-07-31 11:06               ` Daniel Jacobowitz
2007-07-31 13:35                 ` Nick Roberts
2007-07-31 10:14           ` Vladimir Prus [this message]
2007-07-31 10:29             ` Nick Roberts
2007-07-31  8:09     ` 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='f8n02k$se7$1@sea.gmane.org' \
    --to=ghost@cs.msu.su \
    --cc=gdb-patches@sources.redhat.com \
    /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