mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
(c_value_of_root): Don't select frame if variable
object is out of scope.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user