* varobj.c (install_new_value): Only call value_get_print_value
authorDaniel Jacobowitz <drow@false.org>
Thu, 8 Feb 2007 17:39:48 +0000 (17:39 +0000)
committerDaniel Jacobowitz <drow@false.org>
Thu, 8 Feb 2007 17:39:48 +0000 (17:39 +0000)
if changeable.

gdb/ChangeLog
gdb/varobj.c

index 224e89a9929dff84e7459daf95a64429e49565fe..38ef25aa339163d165149336da48065c8a8eecd5 100644 (file)
@@ -1,3 +1,8 @@
+2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * varobj.c (install_new_value): Only call value_get_print_value
+       if changeable.
+
 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
 
        Reported by timeless@gmail.com:
index 578a4d1717cdb9e50f9619d5cc3de821dadc54cf..be0f2bcdf2680116a22a8d92a6aa780add5423ef 100644 (file)
@@ -953,7 +953,7 @@ install_new_value (struct varobj *var, struct value *value, int initial)
   /* If the type is changeable, compare the old and the new values.
      If this is the initial assignment, we don't have any old value
      to compare with.  */
-  if (initial)
+  if (initial && changeable)
     var->print_value = value_get_print_value (value, var->format);
   else if (changeable)
     {
This page took 0.031114 seconds and 4 git commands to generate.