2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
+ * varobj.c (c_value_of_variable): Use xstrdup.
+
+2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
+
Update stored rendition of varobj value when format changes.
* varobj.c (varobj_set_display_format): Recomputed
print_value.
gdb_assert (varobj_value_is_changeable_p (var));
gdb_assert (!value_lazy (var->value));
- return strdup (var->print_value);
+ return xstrdup (var->print_value);
}
}
}