+2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
+
+ * varobj.c (c_value_of_root, c_value_of_child)
+ (cplus_describe_child): Don't call release_value.
+
2007-01-24 Thiemo Seufer <ths@mips.com>
* mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
if (within_scope)
{
/* We need to catch errors here, because if evaluate
- expression fails we just want to make val->error = 1 and
- go on */
- if (gdb_evaluate_expression (var->root->exp, &new_val))
- {
- release_value (new_val);
- }
-
+ expression fails we want to just return NULL. */
+ gdb_evaluate_expression (var->root->exp, &new_val);
return new_val;
}
{
struct value *value = NULL;
c_describe_child (parent, index, NULL, &value, NULL);
- if (value != NULL)
- release_value (value);
return value;
}
if (cvalue && value)
{
*cvalue = value_cast (TYPE_FIELD_TYPE (type, index), value);
- release_value (*cvalue);
}
if (ctype)