* varobj.c (c_value_of_root, c_value_of_child)
(cplus_describe_child): Don't call release_value.
This commit is contained in:
parent
ed9ef26324
commit
85d93f1df0
2 changed files with 7 additions and 10 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
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>
|
2007-01-24 Thiemo Seufer <ths@mips.com>
|
||||||
|
|
||||||
* mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
|
* mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
|
||||||
|
|
12
gdb/varobj.c
12
gdb/varobj.c
|
@ -2020,13 +2020,8 @@ c_value_of_root (struct varobj **var_handle)
|
||||||
if (within_scope)
|
if (within_scope)
|
||||||
{
|
{
|
||||||
/* We need to catch errors here, because if evaluate
|
/* We need to catch errors here, because if evaluate
|
||||||
expression fails we just want to make val->error = 1 and
|
expression fails we want to just return NULL. */
|
||||||
go on */
|
gdb_evaluate_expression (var->root->exp, &new_val);
|
||||||
if (gdb_evaluate_expression (var->root->exp, &new_val))
|
|
||||||
{
|
|
||||||
release_value (new_val);
|
|
||||||
}
|
|
||||||
|
|
||||||
return new_val;
|
return new_val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2038,8 +2033,6 @@ c_value_of_child (struct varobj *parent, int index)
|
||||||
{
|
{
|
||||||
struct value *value = NULL;
|
struct value *value = NULL;
|
||||||
c_describe_child (parent, index, NULL, &value, NULL);
|
c_describe_child (parent, index, NULL, &value, NULL);
|
||||||
if (value != NULL)
|
|
||||||
release_value (value);
|
|
||||||
|
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -2304,7 +2297,6 @@ cplus_describe_child (struct varobj *parent, int index,
|
||||||
if (cvalue && value)
|
if (cvalue && value)
|
||||||
{
|
{
|
||||||
*cvalue = value_cast (TYPE_FIELD_TYPE (type, index), value);
|
*cvalue = value_cast (TYPE_FIELD_TYPE (type, index), value);
|
||||||
release_value (*cvalue);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ctype)
|
if (ctype)
|
||||||
|
|
Loading…
Add table
Reference in a new issue