(c_value_of_root): Don't select frame if variable

object is out of scope.
This commit is contained in:
Nick Roberts 2007-01-05 21:58:48 +00:00
parent 6fe1a48799
commit 2d43bda242

View file

@ -1970,7 +1970,8 @@ c_value_of_root (struct varobj **var_handle)
if (pc < BLOCK_START (var->root->valid_block) ||
pc >= BLOCK_END (var->root->valid_block))
within_scope = 0;
select_frame (fi);
else
select_frame (fi);
}
}