aboutsummaryrefslogtreecommitdiff
path: root/gdb/varobj.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-06-10 23:39:45 +0000
committerPedro Alves <palves@redhat.com>2009-06-10 23:39:45 +0000
commite21458b242c4b5f6d3a07e88d22130160f4fb7f1 (patch)
tree43e5b702d557d84bbbaea0a200cde6bfbf7dd1cd /gdb/varobj.c
parent8bb318c686da09d7b614eaa7b147137d8747a985 (diff)
downloadgdb-e21458b242c4b5f6d3a07e88d22130160f4fb7f1.zip
gdb-e21458b242c4b5f6d3a07e88d22130160f4fb7f1.tar.gz
gdb-e21458b242c4b5f6d3a07e88d22130160f4fb7f1.tar.bz2
* varobj.c (varobj_create): Properly restore the selected frame.
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r--gdb/varobj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c
index 9729766..7df7fed 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -577,7 +577,7 @@ varobj_create (char *objname,
var->root->rootvar = var;
/* Reset the selected frame */
- if (fi != NULL)
+ if (old_fi != NULL)
select_frame (old_fi);
}