2010-03-31 Stan Shebs <stan@codesourcery.com>
[deliverable/binutils-gdb.git] / gdb / varobj.c
index b4b2461017e0cf7178f9209d40c04648ca642dc7..c4d02c96c5e1bdfe41c7f10bc06949e54af463b2 100644 (file)
@@ -1593,7 +1593,10 @@ install_new_value (struct varobj *var, struct value *value, int initial)
     {
       xfree (print_value);
       print_value = value_get_print_value (var->value, var->format, var);
-      if (!var->print_value || strcmp (var->print_value, print_value) != 0)
+      if ((var->print_value == NULL && print_value != NULL)
+         || (var->print_value != NULL && print_value == NULL)
+         || (var->print_value != NULL && print_value != NULL
+             && strcmp (var->print_value, print_value) != 0))
        changed = 1;
     }
   if (var->print_value)
This page took 0.026041 seconds and 4 git commands to generate.