(c_value_of_root): Don't select frame if variable
object is out of scope.
This commit is contained in:
parent
6fe1a48799
commit
2d43bda242
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue