* varobj.c (install_new_value): Handle case where new print_value
is NULL.
+2010-03-03 Tom Tromey <tromey@redhat.com>
+
+ PR mi/11098:
+ * varobj.c (install_new_value): Handle case where new print_value
+ is NULL.
+
2010-03-03 Dainis Jonitis <jonitis@gmail.com>
PR gdb/11345:
{
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)