This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Type information in -data-evaluate-expression


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


 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]