(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,6 +1970,7 @@ c_value_of_root (struct varobj **var_handle)
|
||||||
if (pc < BLOCK_START (var->root->valid_block) ||
|
if (pc < BLOCK_START (var->root->valid_block) ||
|
||||||
pc >= BLOCK_END (var->root->valid_block))
|
pc >= BLOCK_END (var->root->valid_block))
|
||||||
within_scope = 0;
|
within_scope = 0;
|
||||||
|
else
|
||||||
select_frame (fi);
|
select_frame (fi);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue