diff options
author | Nick Roberts <nickrob@snap.net.nz> | 2007-01-05 21:58:48 +0000 |
---|---|---|
committer | Nick Roberts <nickrob@snap.net.nz> | 2007-01-05 21:58:48 +0000 |
commit | 8d9a06c13cf5f162dea06f57ee136e9882182c95 (patch) | |
tree | 1bd9d259f47b44574bc2c5d0d8959feb85368aeb /gdb | |
parent | 413c8d16a3eb56e89bd2deccd5a7d6e859e7b812 (diff) | |
download | gdb-8d9a06c13cf5f162dea06f57ee136e9882182c95.tar.gz |
(c_value_of_root): Don't select frame if variable
object is out of scope.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/varobj.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } } |