From 2d43bda2420702328d268dc34a1e6ee7fc23b077 Mon Sep 17 00:00:00 2001 From: Nick Roberts Date: Fri, 5 Jan 2007 21:58:48 +0000 Subject: [PATCH] (c_value_of_root): Don't select frame if variable object is out of scope. --- gdb/varobj.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } } -- 2.30.2