aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Roberts <nickrob@snap.net.nz>2007-01-05 21:58:48 +0000
committerNick Roberts <nickrob@snap.net.nz>2007-01-05 21:58:48 +0000
commit2d43bda2420702328d268dc34a1e6ee7fc23b077 (patch)
tree3eef2de5d63ec1e552362b9b8195d5909b0e6bb6
parent6fe1a487995bb7d8d621ffe0e113017023fe74c4 (diff)
downloadgdb-2d43bda2420702328d268dc34a1e6ee7fc23b077.zip
gdb-2d43bda2420702328d268dc34a1e6ee7fc23b077.tar.gz
gdb-2d43bda2420702328d268dc34a1e6ee7fc23b077.tar.bz2
(c_value_of_root): Don't select frame if variable
object is out of scope.
-rw-r--r--gdb/varobj.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c
index 056cf58..e24bcd3 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);
}
}