From: Nick Roberts Date: Fri, 5 Jan 2007 21:58:48 +0000 (+0000) Subject: (c_value_of_root): Don't select frame if variable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2d43bda2420702328d268dc34a1e6ee7fc23b077;p=binutils-gdb.git (c_value_of_root): Don't select frame if variable object is out of scope. --- diff --git a/gdb/varobj.c b/gdb/varobj.c index 056cf58f650..e24bcd396d4 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -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); } }