Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* MI: Another -var-update bug?
@ 2006-12-12 11:09 Nick Roberts
  2006-12-13  6:32 ` MI: Another -var-update bug? [PATCH] Nick Roberts
  0 siblings, 1 reply; 13+ messages in thread
From: Nick Roberts @ 2006-12-12 11:09 UTC (permalink / raw)
  To: gdb-patches


Variable objects appear to test scope on a frame basis (in c_value_of root).
If we create a variable object for j in the inner block of the program below
then doing -var-update on line 10 doesn't report it as being out of scope.  But
struct varobj_root has a member struct block *valid_block.  Presumably the
addresses in this structure can be used to test if the variable is still in
scope or not

-- 
Nick                                           http://www.inet.net.nz/~nickrob



1   main ()
2   {
3     int i;
4     i = 1;
5     {
6       int j;
7       j = 2;
8       printf ("j = %d\n", j);
9     }
10    i = 3;
11  }


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2007-01-05 15:10 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-12 11:09 MI: Another -var-update bug? Nick Roberts
2006-12-13  6:32 ` MI: Another -var-update bug? [PATCH] Nick Roberts
2006-12-30 15:06   ` Daniel Jacobowitz
2006-12-30 22:43     ` Nick Roberts
2006-12-31  2:19       ` Daniel Jacobowitz
2007-01-01 16:24         ` Daniel Jacobowitz
2007-01-01 22:13           ` Nick Roberts
2007-01-04 18:51             ` Vladimir Prus
2007-01-04 19:43               ` Nick Roberts
2007-01-04 18:49   ` Vladimir Prus
2007-01-04 23:59     ` Nick Roberts
2007-01-05  9:10       ` Vladimir Prus
2007-01-05 15:10         ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox