* varobj.c (c_value_of_variable): Use xstrdup.

This commit is contained in:
Vladimir Prus 2008-02-04 07:49:04 +00:00
parent 3802b2dd6b
commit c39c82565f
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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.

View File

@ -2252,7 +2252,7 @@ c_value_of_variable (struct varobj *var)
gdb_assert (varobj_value_is_changeable_p (var));
gdb_assert (!value_lazy (var->value));
return strdup (var->print_value);
return xstrdup (var->print_value);
}
}
}