* varobj.c (varobj_create): Properly restore the selected frame.
authorPedro Alves <palves@redhat.com>
Wed, 10 Jun 2009 23:39:45 +0000 (23:39 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 10 Jun 2009 23:39:45 +0000 (23:39 +0000)
gdb/ChangeLog
gdb/varobj.c

index 000b6e80d1a68fe13b361042ba6af587059ef73e..5b23ea78ffe97787e3312d0c15dde441849e2041 100644 (file)
@@ -1,3 +1,7 @@
+2009-06-11  Pedro Alves  <pedro@codesourcery.com>
+
+       * varobj.c (varobj_create): Properly restore the selected frame.
+
 2009-06-05  Tom Tromey  <tromey@redhat.com>
 
        * inferior.c (print_inferior): Make a table, not a list.  Emit
index 9729766e468c878e9052d0afd6138d790441d74a..7df7fed2446331d7f994e479c54f799061417b06 100644 (file)
@@ -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);
     }